-
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
syncer(dm): fix startGTID is equal to endGTID #4386
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. |
6623997
to
145938b
Compare
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #4386 +/- ##
================================================
- Coverage 55.6402% 55.5716% -0.0687%
================================================
Files 494 504 +10
Lines 61283 62226 +943
================================================
+ Hits 34098 34580 +482
- Misses 23750 24205 +455
- Partials 3435 3441 +6 |
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.
LGTM
dm/syncer/binlog_locations.go
Outdated
err = l.curEndLocation.GetGTID().Update(gtidStr) | ||
if err != nil { | ||
log.L().DPanic("failed to update GTID set", | ||
zap.Any("GTID", gtidStr), |
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.
zap.String?
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.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1be1a07
|
/run-dm-integration-test |
/hold need fix test |
/unhold |
This pull request has been accepted and is ready to merge. Commit hash: 68ac55f
|
/hold |
/run-dm-integration-test |
/run-dm-integration-test |
/run-verify |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1fdd729
|
/unhold |
What problem does this PR solve?
Issue Number: ref #4287
What is changed and how it works?
originally sometimes startGTID is equal to endGTID, but we want to maintain that startLocation <= current event <= endLocation
also remove some log, because I think their effect has been achieved.
Check List
Tests
Code changes
Side effects
Related changes
Release note