-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set EmsEvent ems_ref to event's uid, to avoid same-second collision #264
Conversation
EmsEvent.create_event drops "duplicate" events, determined by (event_type, timestamp, chain_id, ems_id, ems_ref). Container events had no ems_ref (and no chain_id), meaning events of same type in same second collided and only one EmsEvent was created. The lost events weren't handled by Automate / Policy. Using k8s event's uid, not involvedObject's uid which still wouldn't be unique (for repeating events on same object). https://bugzilla.redhat.com/show_bug.cgi?id=1583832
Checked commit cben@6d1cb2c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM 👍 |
@cben I see you want to test on Gaprindashvili before we merge so I'm not merging. |
Let's merge but not backport?
for master, I'm confident it's the right fix.
пн, 25 июн. 2018 г., 10:23 Mooli Tayer <[email protected]>:
… @cben <https://github.com/cben> I see you want to test on Gaprindashvili
before we merge so I'm not merging.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#264 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQtGL2lYTJJGvA06JV0LxjjWQKUD1pOks5uAI_VgaJpZM4U1T86>
.
|
@simaishi Applies cleanly to gaprindashvili, tested there too, clear for backporting. |
Set EmsEvent ems_ref to event's uid, to avoid same-second collision (cherry picked from commit 9ee6118) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1595324
Gaprindashvili backport details:
|
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1583832
@miq-bot add-label bug, events, gaprindashvili/yes
EmsEvent.create_event drops "duplicate" events, determined by (event_type, timestamp, chain_id, ems_id, ems_ref).
Container events had no ems_ref (and no chain_id), meaning events of same type in same second collided and only one EmsEvent was created.
The lost events weren't handled by Automate / Policy.
Using k8s event's uid, not involvedObject's uid which still wouldn't be unique (for repeating events on same object).
4 EmsEvents created, with same timestamp and different ems_ref and.
@elad661 @moolitayer please review