Skip to content
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

sync-diff-inspector: support checkpoint #224

Merged
merged 65 commits into from
Apr 9, 2019

Conversation

WangXiangUSTC
Copy link
Contributor

What problem does this PR solve?

save sync-diff-inspector's checkpoint, and then can stop it and restart to continue check.

What is changed and how it works?

  1. update chunk's struct
  2. save chunk's info to downstream when check
  3. when start sync-diff-inspector, will load checkpoint information
  4. refine some code

Check List

Tests

  • Unit test
  • Manual test (stop and then restart)

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to be included in the release note

@WangXiangUSTC
Copy link
Contributor Author

/run-all-tests

pkg/dbutil/common.go Outdated Show resolved Hide resolved
pkg/diff/chunk.go Outdated Show resolved Hide resolved
pkg/diff/chunk.go Outdated Show resolved Hide resolved
pkg/dbutil/common.go Show resolved Hide resolved
pkg/dbutil/common.go Show resolved Hide resolved
pkg/dbutil/common.go Outdated Show resolved Hide resolved
pkg/diff/checkpoint.go Outdated Show resolved Hide resolved
pkg/diff/checkpoint.go Outdated Show resolved Hide resolved
pkg/diff/checkpoint.go Outdated Show resolved Hide resolved
pkg/diff/checkpoint.go Show resolved Hide resolved
pkg/diff/chunk.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
@WangXiangUSTC
Copy link
Contributor Author

@GregoryIan @csuzhangxc PTAL again

@IANTHEREAL
Copy link
Collaborator

LGTM

pkg/diff/diff.go Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Show resolved Hide resolved
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@WangXiangUSTC WangXiangUSTC merged commit d9985c6 into pingcap:master Apr 9, 2019
@WangXiangUSTC WangXiangUSTC deleted the xiang/checkpoint branch April 9, 2019 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants