-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: add the ddl notifier as a listener to the stats owner #56795
ddl: add the ddl notifier as a listener to the stats owner #56795
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #56795 +/- ##
=================================================
- Coverage 73.2825% 57.0222% -16.2604%
=================================================
Files 1636 1786 +150
Lines 453340 640198 +186858
=================================================
+ Hits 332219 365055 +32836
- Misses 100768 250025 +149257
- Partials 20353 25118 +4765
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
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.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
// 2. Keeping the stats handler and DDLNotifier on the same node maintains data integrity. | ||
// 3. It prevents potential race conditions or inconsistencies that could arise from | ||
// distributed processing of these events across multiple nodes. | ||
var _ owner.Listener = (*DDLNotifier)(nil) |
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.
Just to remind that owner.Listener can not ensure very strict "only one owner in database". If the old owner retires slowly the new owner will cut in.
/retest |
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.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
/retest |
7637e53
to
39a1371
Compare
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> ddl: close the ddl notifier correctly Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> ddl: better comment Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> ddl: fix broken tests Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> ddl: use wait group to wait the goroutine exits Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> ddl: update bazel files Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> refactor: remove useless wait Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: move the wait to the right position Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: rename and update comment Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: update comment Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: use system session pool Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> docs: update comments Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: make bazel happy Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> refactor: simplify test code Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> fix: make bazel happy Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
39a1371
to
97071da
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.
feel free to unhold
/hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fzzf678, lance6716 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
/unhold |
/unhold |
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
/retest |
/hold |
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
/test unit-test |
@Rustin170506: The specified target(s) for
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/unhold |
What problem does this PR solve?
Issue Number: ref #55722
Problem Summary:
What changed and how does it work?
We should only start the ddl notifier on the stats owner node. So in this PR, I added the ddl notifier as a listener to the stats owner.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.