Skip to content

raftstore: fix the corner case if entering hiberate state without correctly clearing busy_on_apply state. (#19199)#19202

Merged
ti-chi-bot[bot] merged 2 commits intotikv:release-8.5from
ti-chi-bot:cherry-pick-19199-to-release-8.5
Dec 14, 2025
Merged

raftstore: fix the corner case if entering hiberate state without correctly clearing busy_on_apply state. (#19199)#19202
ti-chi-bot[bot] merged 2 commits intotikv:release-8.5from
ti-chi-bot:cherry-pick-19199-to-release-8.5

Conversation

@ti-chi-bot
Copy link
Member

@ti-chi-bot ti-chi-bot commented Dec 12, 2025

This is an automated cherry-pick of #19199

What is changed and how it works?

Issue Number: Close #18233 close #19203

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_apply state timely, based on the previous work in #18236.

Fix the corner case that some hibernate peers cannot clear their `busy_on_apply` state timely.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note

None.

…rectly clearing `busy_on_apply` state.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@ti-chi-bot ti-chi-bot added dco-signoff: yes Indicates the PR's author has signed the dco. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. labels Dec 12, 2025
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 12, 2025
@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 13, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Dec 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hbisheng, LykxSassinator

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 13, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Dec 13, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-12-12 16:30:18.73805608 +0000 UTC m=+1231363.551833652: ☑️ agreed by LykxSassinator.
  • 2025-12-13 02:08:44.285629581 +0000 UTC m=+1266069.099407163: ☑️ agreed by hbisheng.

@ti-chi-bot ti-chi-bot bot added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Dec 14, 2025
@ti-chi-bot ti-chi-bot bot merged commit f9dbbeb into tikv:release-8.5 Dec 14, 2025
5 checks passed
@ti-chi-bot ti-chi-bot bot deleted the cherry-pick-19199-to-release-8.5 branch December 14, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved cherry-pick-approved Cherry pick PR approved by release team. dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants