-
Notifications
You must be signed in to change notification settings - Fork 641
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
fix(broker): report health on change only #13655
Conversation
Previously every invocation of updateHealthStatus caused listeners to be called even if nothing changed.
zeebePartitionHealth.addFailureListener(failureListener); | ||
|
||
// when | ||
partition.onNewRole(Role.LEADER, 1); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
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.
@oleschoenburg is there any alternative to this?
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.
No 😭 This is just the way it is currently and why the partition transition process needs some work.
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.
Thanks @megglos 🚀
bors merge |
13655: fix(broker): report health on change only r=megglos a=megglos ## Description Previously every invocation of updateHealthStatus caused listeners to be called even if nothing changed. ## Related issues <!-- Which issues are closed by this PR or are related --> closes #13650 Co-authored-by: Meggle (Sebastian Bathke) <[email protected]>
Build failed: |
bors retry |
Build succeeded: |
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Description
Previously every invocation of updateHealthStatus caused listeners to be called even if nothing changed.
Related issues
closes #13650
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing: