Repository navigation
mysql: retain safe mode at the ReplicatingTs boundary - #6780
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asddongmen, lidezhu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #6779
What is changed and how it works?
Treat events with CommitTs == ReplicatingTs as being in replay safe mode by changing the timestamp condition from < to <= in normal SQL generation, per-event batch generation, and cross-event batch generation.
This aligns SQL generation with the existing batch eligibility check, which classifies events into CommitTs <= ReplicatingTs and CommitTs > ReplicatingTs. It prevents an equality event at the beginning of a batch from causing subsequent replay events to use ordinary INSERT semantics.
Per-event evaluation is preserved: events that have crossed their own ReplicatingTs boundary continue to use ordinary SQL semantics unless another safe-mode condition is active.
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
Summary by CodeRabbit