dm/syncer: advance checkpoint on rotate events (#12405)#12525
dm/syncer: advance checkpoint on rotate events (#12405)#12525ti-chi-bot[bot] merged 5 commits intopingcap:release-8.5from
Conversation
Summary of ChangesHello @ti-chi-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses an issue where the global checkpoint was not being consistently updated during binlog rotate events. By explicitly saving the global checkpoint position when a non-fake rotate event occurs, the change ensures more accurate and reliable progress tracking, which is crucial for data consistency and disaster recovery scenarios. The addition of a dedicated unit test further validates this critical behavior. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request correctly implements the advancement of the global checkpoint position when a rotate event is received. This is a valuable improvement that ensures the syncer's progress is tracked even during periods of inactivity in the binlog stream (e.g., when rotating through empty or filtered binlog files). The implementation correctly handles both normal and sharding resync modes and appropriately skips fake rotate events. A unit test has been added to verify the core functionality.
| if !utils.IsFakeRotateEvent(ec.header) { | ||
| s.saveGlobalPoint(ec.endLocation) | ||
| } |
There was a problem hiding this comment.
|
/retest |
Codecov Report❌ Patch coverage is Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## release-8.5 #12525 +/- ##
================================================
Coverage ? 53.4431%
================================================
Files ? 1045
Lines ? 137142
Branches ? 0
================================================
Hits ? 73293
Misses ? 58394
Partials ? 5455 🚀 New features to boost your workflow:
|
|
/retest |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3AceShowHand, Benjamin2037, D3Hunter The full list of commands accepted by this bot can be found here. The pull request process is described here |
|
/retest |
1 similar comment
|
/retest |
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/test all |
… algorithm (pingcap#12525) Add a new `checksum-algorithm` configuration flag to sync-diff-inspector to support FIPS-compliant environments where MD5 is disabled. Supported options: "md5" (default) and "sha256". Cherry-picked from pingcap/tidb-tools#886 Close pingcap/tidb-tools#885 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
This is an automated cherry-pick of #12405
What problem does this PR solve?
Issue Number: close #12339
What is changed and how it works?
Advance global checkpoint position based on end location of rotate events.
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