-
Notifications
You must be signed in to change notification settings - Fork 289
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
latency(cdc): fix ddl does not execute caused by incorrect checkpoint calculation #5761
latency(cdc): fix ddl does not execute caused by incorrect checkpoint calculation #5761
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## fb/latency #5761 +/- ##
===============================================
Coverage ? 57.0187%
===============================================
Files ? 687
Lines ? 80684
Branches ? 0
===============================================
Hits ? 46005
Misses ? 30434
Partials ? 4245 |
c088531
to
c85e27b
Compare
@@ -376,25 +376,21 @@ func (r *replicationManager) AdvanceCheckpoint( | |||
currentTables []model.TableID, | |||
) (newCheckpointTs, newResolvedTs model.Ts) { | |||
newCheckpointTs, newResolvedTs = math.MaxUint64, math.MaxUint64 |
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.
Can we return the current checkpoint if there is no table?
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.
I would prefer the current implementation.
If the current checkpoint is less than barrierTs, barrier won't be hit to take effect.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (pingcap#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
… calculation (#5761) * fix tp advance checkpoint. * fix ddl sink log. * add a ut for replication manager advance checkpoint ts.
What problem does this PR solve?
Issue Number: close #4757
What is changed and how it works?
coordinator should not return
checkpointCannotProceed
if there is no table.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note