-
Notifications
You must be signed in to change notification settings - Fork 286
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
checker(dm): support concurrent check #3975
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. |
/run-dm-integration-test |
/run-dm-integration-test |
/run-dm-integration-test |
/run-dm-integration-test |
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.
will reveiw table_structure.go later 😂 there one is too large
dm/pkg/checker/table_structure.go
Outdated
case <-ctx.Done(): | ||
log.L().Logger.Warn("ctx canceled before input tables completely") | ||
return | ||
default: | ||
inCh <- &checkItem{table, sourceID} |
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.
case <-ctx.Done(): | |
log.L().Logger.Warn("ctx canceled before input tables completely") | |
return | |
default: | |
inCh <- &checkItem{table, sourceID} | |
case <-ctx.Done(): | |
log.L().Logger.Warn("ctx canceled before input tables completely") | |
return | |
case inCh <- &checkItem{table, sourceID}: |
current implement still can cause bock if ctx is canceled after select check
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: dfc8e81
|
/run-all-tests |
/run-dm-integration-test |
1 similar comment
/run-dm-integration-test |
… pre-check-concurrency merge
c.reMu.Lock() | ||
markCheckError(r, err) | ||
c.reMu.Unlock() |
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.
here is different from L396. Here can cause data race with handleOpts()
.
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.
If there is no other doubt, please give me a /merge again. @Ehco1996
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4d91558
|
/run-verify |
What problem does this PR solve?
Issue Number: close #3974
What is changed and how it works?
MydumperConfig.Threads
Check List
Tests
10000 tables with default dumpconfig.thread
Code changes
Related changes
Release note