Repository navigation
fix(*): merge operator inconsistent after maintainer move (#3769) - #5817
ti-chi-bot[bot] merged 4 commits into
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@wlwilliamx This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. 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 ti-community-infra/tichi 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: wlwilliamx 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 |
|
/test all |
Keep release-8.5-specific scheduling behavior while adapting the merge recovery changes and generated protobuf output. Signed-off-by: wlwilliamx <wlwilliamx@gmail.com>
|
Cherry-pick conflicts appear resolved; removing the |
|
/unhold |
Preserve maintainer epoch fencing and bootstrap recovery. Keep both merge journaling and bootstrap coverage repair. Signed-off-by: wlwilliamx <wlwilliamx@gmail.com>
|
/test all |
|
/retest |
1 similar comment
|
/retest |
Preserve merge recovery while integrating redo maintainer epoch fencing. Signed-off-by: wlwilliamx <wlwilliamx@gmail.com>
This is an automated cherry-pick of #3769
What problem does this PR solve?
Issue Number: close #4763
Maintainer bootstrap rebuilds running spans from dispatcher-manager snapshots, but before this change it did not fully rebuild in-flight operator state after maintainer failover.
There were two gaps:
MergeDispatcherRequestinstead ofScheduleDispatcherRequest, but dispatcher managers did not persist in-flight merge requests in bootstrap responses, so a maintainer move could lose the merge intent entirely and leave the source dispatchers or merged dispatcher stuck in an intermediate state.As a result, table scheduling might not converge automatically after maintainer failover, especially when failover happens while add/remove/move/split/merge is still in progress.
What is changed and how it works?
MaintainerBootstrapResponse.spanController;StoppedorRemoved, not transient states such asWaitingMerge.maintainer_failover_when_operatorintegration coverage to cover merge recovery and make the test runnable against non-default local ports for isolated local reruns.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
No. This only changes bootstrap recovery for in-flight scheduling state after maintainer failover and does not change steady-state scheduling behavior or external compatibility.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores