Repository navigation
Don't produce events when initial deployment fails - #3527
Conversation
Don't produce events when initial deployment generation fails. The most common case is when ImageChange triggers are defined for tags which don't yet exist. Producing events in practice results in thousands of duplicate events per deployment in some cases, and the information is better relayed to users via new API state associated with the trigger itself or the deployment config.
|
LGTM [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2621/) (Image: devenv-fedora_1907) |
|
Evaluated for origin up to 67928a7 |
|
What happens if you lack compute resources? I thought this was originally On Wednesday, July 1, 2015, OpenShift Bot [email protected] wrote:
|
|
Different error, log it differently? We weren't writing events, we were On Wed, Jul 1, 2015 at 7:25 PM, Derek Carr [email protected] wrote:
Clayton Coleman | Lead Engineer, OpenShift |
|
I think you're both confused? This issue reverts the change made for #2743. And this is the removal of event writing, not log writing. |
|
Event writing isn't a problem? On Jul 2, 2015, at 9:10 AM, Dan Mace [email protected] wrote: I think you're both confused? This issue reverts the change made for #2743 — |
|
3492 is not events. It's handle error. |
|
I think we need to revert this. |
|
Now I see the confusion. The entire time we've been talking about events. You're saying the event duplication is okay but the log spam is the problem? |
|
Created #3549 to restore events and remove the source of the server logging. |
|
HandleError sends an event to Sentry, which is where this was being On Thu, Jul 2, 2015 at 10:59 AM, Dan Mace [email protected] wrote:
Clayton Coleman | Lead Engineer, OpenShift |
Thanks for the clarification. I agree that the events are still excessive, but necessary as the only way to communicate to the user at the moment. For that reason, I say #3526 is still valid as a followup to replace the events with something more sensible. |
|
Let's set a general rule. If your component sends more than 1 event per On Thu, Jul 2, 2015 at 1:21 PM, Dan Mace [email protected] wrote:
Clayton Coleman | Lead Engineer, OpenShift |
Don't produce events when initial deployment generation fails. The
most common case is when ImageChange triggers are defined for tags
which don't yet exist. Producing events in practice results in
thousands of duplicate events per deployment in some cases, and the
information is better relayed to users via new API state associated
with the trigger itself or the deployment config.
Closes #3492.
Follow up with API additions in #3526.