-
Notifications
You must be signed in to change notification settings - Fork 3.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
changefeedccl: move node drain handling logic out of kvfeed #109340
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
613acc0
to
a23ceea
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.
Reviewed 1 of 2 files at r1.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @HonoreDB and @jayshrivastava)
pkg/ccl/changefeedccl/changefeed_processors.go
line 639 at r1 (raw file):
} if err := ca.checkForNodeDrain(); err != nil {
perhaps this should be called in the main loop (Next()?)
pkg/ccl/changefeedccl/kvfeed/kv_feed.go
line 241 at r1 (raw file):
defer func() { log.Errorf(ctx, "kvfeed OVERALL run %v\n", err) }()
stray debugging?
a23ceea
to
36c8cc6
Compare
bors r=miretskiy |
bors r- |
Canceled. |
Previously, the kvfeed was responsible for monitoring for node drains using a goroutine. This change moves this logic into the change aggregator and removes the goroutine. Overall, this change makes the code more organized and performant. This change was inspired by work being done for cockroachdb#109167. The work in that PR requires being able to restart the kvfeed. Having drain logic intermingled with the kvfeed makes restarts much more complex, hard to review, prone to bugs, etc. Informs: cockroachdb#96953 Release note: None Epic: None
36c8cc6
to
d6e7b27
Compare
bors r=miretskiy |
This PR was included in a batch that was canceled, it will be automatically retried |
Build succeeded: |
Previously, the kvfeed was responsible for monitoring for
node drains using a goroutine. This change moves this logic
into the change aggregator and removes the goroutine.
Overall, this change makes the code more organized and performant.
This change was inspired by work being done for #109167. The
work in that PR requires being able to restart the kvfeed.
Having drain logic intermingled with the kvfeed makes
restarts much more complex, hard to review, prone to bugs, etc.
Informs: #96953
Release note: None
Epic: None