-
Notifications
You must be signed in to change notification settings - Fork 586
Serialize fields before queueing it to the workqueue #10420
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
base: master
Are you sure you want to change the base?
Conversation
Can you please try to split that huge commit into smaller pieces, making it easier to follow the individual changes. The PR description already gives a good example of a part that could easily be split off:
Ideally, there are separate commits for moving and changing code, otherwise, changes happening in the same step tend do be quite hidden. |
4e0294f
to
3df997c
Compare
Done! |
They're just useless, since a `CheckResult` handler is never going to be called without a check result and a checkable can't exist without a checkcommand.
4ab4b33
to
0430d47
Compare
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.
Looks good to me now.
0430d47
to
cef6fb7
Compare
Sorry, I had to force push again because I missed one |
Previously, all the event handlers of our perfdata writers were directly enqueued into their own work queue, which then extracted all the required metrics from the checkable object. However, since this is done a differently different thread than the one that is used to process the check result, the checkable could change its state in the meantime leading to an inconsistent state. Therefore, all the required metrics are now extracted within the same thread that triggered the event and then enqueued into the work queue. Apart from that, I've removed a lot of useless
if (cr) ...
statements, since aCheckResult
handler is never going to be called without a validCheckResult
.fixes #10406