-
Notifications
You must be signed in to change notification settings - Fork 287
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
loader(dm): simplify lightning checkpoint and add clean meta #3813
Merged
Merged
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
86a31e7
simplify lightning checkpoint and add clean meta
glorv f849a07
fix lint
glorv 8201a52
fix checkpoint dsn
glorv 902dca6
fix unit test
glorv ea02fbc
add unit test
glorv 62a73ca
Merge branch 'master' into lighting-cp
glorv 7ee0078
fix lint
glorv adf8a7b
Merge branch 'master' into lighting-cp
glorv 44f90ee
resolve comments
glorv 174efba
Merge branch 'master' of ssh://github.com/pingcap/ticdc into lighting-cp
glorv ec90513
change lightning status to varchar in checkpoint table
glorv f2ea0cd
remove useless import
glorv 83156f2
fix lint
glorv 09df71e
remove unused method
glorv 5c489fd
Merge branch 'master' of ssh://github.com/pingcap/ticdc into lighting-cp
glorv cbf0641
Merge branch 'master' into lighting-cp
ti-chi-bot 020d020
Merge branch 'master' into lighting-cp
ti-chi-bot 8224103
Merge branch 'master' into lighting-cp
ti-chi-bot 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 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 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 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 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
Oops, something went wrong.
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.
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 reuse
CheckpointStatus
intidb/pkg/checkpoints
?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.
do you mean the real tidb-lightning's
CheckpointStatus
? I think because there are so many state in it, it maybe hard to understand of not familiar with tidb-lightningThere 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.
oh my fault i got the two status mixed up, now i think the current implementaion make more sense
btw, how about direct use char like
init
,running
,finished
in db? maybe this can increase readabilityThere 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.
done