raftstore: fix the corner case if entering hiberate state without correctly clearing busy_on_apply state.#19199
Conversation
…rectly clearing `busy_on_apply` state. Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes a corner case where hibernate peers fail to clear their busy_on_apply state in a timely manner. The fix adds two strategic calls to on_check_peer_complete_apply_logs() to ensure the state is properly checked and cleared during hibernation scenarios.
- Adds
busy_on_applycheck after updating leader committed index to catch hibernating peers that receive updates - Adds
busy_on_applycheck before responding to hibernate requests to ensure proper state cleanup before entering hibernation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hbisheng, overvenus 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 |
|
@LykxSassinator: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
In response to a cherrypick label: new pull request created to branch |
What is changed and how it works?
Issue Number: Close #18233
What's Changed:
As mentioned in #18233 (comment), there still exists some corner cases that the previous works cannot address effectively.
This PR is the last vaccine to fix the corner case that some hibernate peers cannot clear their
busy_on_applystate timely, based on the previous work in #18236.Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note