coordinator: handle errors from regressed checkpoint status (#5779) - #5899
coordinator: handle errors from regressed checkpoint status (#5779)#5899ti-chi-bot wants to merge 1 commit into
Conversation
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wk989898 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 |
This is an automated cherry-pick of #5779
What problem does this PR solve?
Issue Number: close #5709
What is changed and how it works?
Before this change,
Changefeed.UpdateStatusignored maintainer status reports whoseCheckpointTswas lower than the checkpoint already stored in the coordinator. This kept checkpoint updates monotonic, but it also droppedMaintainerStatus.Errcarried by those reports. As a result, retryable maintainer errors could be missed and the changefeed would not enter warning/backoff as expected.This change keeps the monotonic checkpoint rule while still processing reported errors. If a maintainer reports a lower checkpoint without errors, the status is ignored as before. If it reports a lower checkpoint with errors, TiCDC copies the status, replaces the copied
CheckpointTswith the coordinator's current checkpoint, and sends the copied status through the existing fast-fail and backoff checks.With this behavior, maintainer errors can update the changefeed state and trigger retry/backoff, while the stored checkpoint never decreases and the original maintainer status object is not mutated.
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