-
Notifications
You must be signed in to change notification settings - Fork 306
sync-diff-inspector: enable limit iterator with splitter-strategy configuration #12518
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
Merged
+168
−13
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
083b522
Init
joechenrh 0028460
Update
joechenrh 1e3ba47
sync_diff_inspector: address review findings
joechenrh 2cd367e
sync_diff_inspector: address minor review findings
joechenrh b3c447d
Update
joechenrh 0639401
sync_diff_inspector: address PR review comments
joechenrh eee98ae
revert claude changes
joechenrh a0d9660
revert claude changes
joechenrh c3aeac1
sync_diff_inspector: revert limit splitter to use LIMIT x,1
joechenrh 1d02516
revert
joechenrh 9b64748
revert
joechenrh d9e8430
revert
joechenrh acb644c
sync_diff_inspector: add check-one-chunk failpoint for limit checkpoi…
joechenrh f0f6600
sync_diff_inspector: fix limit splitter channel leak and error log level
joechenrh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
sync_diff_inspector/tests/sync_diff_inspector/checkpoint/config_base_limit.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Diff Configuration. | ||
|
|
||
| ######################### Global config ######################### | ||
|
|
||
| # how many goroutines are created to check data | ||
| check-thread-count = 4 | ||
|
|
||
| # set false if just want compare data by checksum, will skip select data when checksum is not equal. | ||
| # set true if want compare all different rows, will slow down the total compare time. | ||
| export-fix-sql = true | ||
|
|
||
| # ignore check table's data | ||
| check-struct-only = false | ||
|
|
||
| splitter-strategy = "limit" | ||
|
|
||
| ######################### Databases config ######################### | ||
| [data-sources.mysql1] | ||
| host = "127.0.0.1"#MYSQL_HOST | ||
| port = 3306#MYSQL_PORT | ||
| user = "root" | ||
| password = "" | ||
|
|
||
| # remove comment if use tidb's snapshot data | ||
| # snapshot = "2016-10-08 16:45:26" | ||
|
|
||
| [data-sources.tidb] | ||
| host = "127.0.0.1" | ||
| port = 4000 | ||
| user = "root" | ||
| password = "" | ||
| # remove comment if use tidb's snapshot data | ||
| # snapshot = "2016-10-08 16:45:26" | ||
|
|
||
| [table-configs] | ||
| [table-configs.config1] | ||
| target-tables = ["diff_test.test"] | ||
| chunk-size = 10 | ||
| range = "1=1" | ||
| ######################### Task config ######################### | ||
| [task] | ||
| # 1 fix sql: fix-target-TIDB1.sql | ||
| # 2 log: sync-diff.log | ||
| # 3 summary: summary.txt | ||
| # 4 checkpoint: a dir | ||
| output-dir = "/tmp/sync_diff_inspector_test/sync_diff_inspector/output" | ||
|
|
||
| source-instances = ["mysql1"] | ||
|
|
||
| target-instance = "tidb" | ||
|
|
||
| # tables need to check. | ||
| target-check-tables = ["diff_test.test"] | ||
|
|
||
| # extra table config | ||
| target-configs= ["config1"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.