-
Notifications
You must be signed in to change notification settings - Fork 289
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
scheduler(ticdc): replace tableID with Span #7806
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: Neil Shen <overvenus@gmail.com>
e174f5c
to
8c0fd4d
Compare
Signed-off-by: Neil Shen <overvenus@gmail.com>
/run-all-tests |
return nil, nil | ||
} | ||
// Ignore move table if | ||
// 1) it's not in Replicating state or | ||
// 2) the dest capture is the primary. | ||
if r.State != ReplicationSetStateReplicating || r.Primary == dest { | ||
log.Warn("schedulerv3: move table is ignored", | ||
zap.Any("replicationSet", r), zap.Int64("tableID", r.TableID)) | ||
zap.Any("replicationSet", r), zap.Int64("tableID", r.Span.TableID)) |
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.
It's better to put tableID
before replicationSet
, since it's shorter, easy to read.
Signed-off-by: Neil Shen <overvenus@gmail.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 2895616
|
What problem does this PR solve?
Issue Number: ref #7720
What is changed and how it works?
Replace tableID with tablepb.Span in following packages:
There is no change other than replacing tableID with tablepb.Span.
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
No.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note