-
Notifications
You must be signed in to change notification settings - Fork 288
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
dm/optimistic: make errors which isn't sync error handled by 'binlog skip' command #4883
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. |
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.
rest LGTM
"\"result\": true" 1 | ||
"binlog skip test" \ | ||
"\"result\": true" 2 \ | ||
"\"source 'mysql-replica-02' has no error\"" 1 |
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.
How about check the task status after skip? Maybe insert some new rows.
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.
/run-all-tests |
/run-all-tests |
will review after codefreeze 😂 |
/run-all-tests |
/run-all-tests |
/run-verify-ci |
/run-dm-integration-test |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #4883 +/- ##
================================================
- Coverage 56.1240% 55.8888% -0.2352%
================================================
Files 522 524 +2
Lines 65325 66677 +1352
================================================
+ Hits 36663 37265 +602
- Misses 25094 25767 +673
- Partials 3568 3645 +77 |
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
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/optimist.go
Outdated
@@ -179,6 +179,9 @@ func (s *Syncer) handleQueryEventOptimistic(qec *queryEventContext) error { | |||
} | |||
} | |||
|
|||
if op.ConflictStage == optimism.ConflictError { |
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.
maybe use switch to handle different op
, ok to change in next pr
/merge |
This pull request has been accepted and is ready to merge. Commit hash: a2a2158
|
…into fixAddDroppedCol
/run-all-tests |
/run-leak-test |
/run-dm-integration-test |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 389c472
|
/run-dm-integration-test |
What problem does this PR solve?
Issue Number: close #3789
What is changed and how it works?
Add ConflictStage
ConflictError
and returns an error directly when dm-worker meets this stage.Check List
Tests
Code changes
Side effects
Related changes
Release note