Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raftstore: use force_send to send ApplyRes #13168

Merged
merged 3 commits into from
Jul 29, 2022

Conversation

5kbpers
Copy link
Member

@5kbpers 5kbpers commented Jul 29, 2022

Signed-off-by: 5kbpers hustmh@gmail.com

What is changed and how it works?

Issue Number: Close #13160

What's Changed:

Use force_send to send ApplyRes

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test

Side effects

  • Performance regression
    • Consumes more MEM

Release note

Fix a bug that regions may be overlapped if raftstore is too busy

Signed-off-by: 5kbpers <hustmh@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 29, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Connor1996
  • gengliqi

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/needs-triage-completed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 29, 2022
@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-4.0 Type: Need cherry pick to release 4.0 needs-cherry-pick-release-5.0 Type: Need cherry pick to release 5.0 needs-cherry-pick-release-5.1 Type: Need cherry pick to release 5.1 needs-cherry-pick-release-5.2 Type: Need cherry pick to release-5.2 needs-cherry-pick-release-5.3 Type: Need cherry pick to release-5.3 needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. needs-cherry-pick-release-6.2 and removed do-not-merge/needs-triage-completed labels Jul 29, 2022
Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 29, 2022
PeerMsg::ApplyRes {
res: ApplyTaskRes::Apply(r),
},
);
) {
error!("failed to send apply result"; "region_id" => region_id, "err" => ?e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if it's shutting down?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already checked here

if self.is_shutdown() {

Copy link
Member

@gengliqi gengliqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 29, 2022
@5kbpers
Copy link
Member Author

5kbpers commented Jul 29, 2022

/merge

@ti-chi-bot
Copy link
Member

@5kbpers: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Instructions 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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: a04ebcb

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 29, 2022
@ti-chi-bot ti-chi-bot merged commit 940e139 into tikv:master Jul 29, 2022
@ti-chi-bot ti-chi-bot added this to the Pool milestone Jul 29, 2022
@ti-srebot
Copy link
Contributor

cherry pick to release-5.2 in PR #13172

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jul 29, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.3 in PR #13173

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jul 29, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.4 in PR #13174

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jul 29, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-6.0 in PR #13175

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jul 29, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-6.1 in PR #13176

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jul 29, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-6.2 in PR #13177

ti-chi-bot pushed a commit that referenced this pull request Jul 29, 2022
close #13160, ref #13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
5kbpers added a commit to 5kbpers/tikv that referenced this pull request Aug 2, 2022
close tikv#13160

Use force_send to send ApplyRes

Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: 5kbpers <hustmh@gmail.com>
ti-chi-bot pushed a commit that referenced this pull request Aug 2, 2022
close #13160, ref #13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
CalvinNeo pushed a commit to pingcap/tidb-engine-ext that referenced this pull request Aug 2, 2022
close tikv#13160, ref tikv#13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
CalvinNeo pushed a commit to pingcap/tidb-engine-ext that referenced this pull request Aug 2, 2022
close tikv#13160, ref tikv#13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
CalvinNeo pushed a commit to pingcap/tidb-engine-ext that referenced this pull request Aug 2, 2022
close tikv#13160, ref tikv#13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
ti-chi-bot added a commit that referenced this pull request Aug 2, 2022
ref #13168, ref #13193

Cherry pick #13168 and #13193 to release-5.4 hotfix

Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
CalvinNeo pushed a commit to CalvinNeo/tidb-engine-ext that referenced this pull request Aug 3, 2022
close tikv#13160, ref tikv#13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
CalvinNeo pushed a commit to CalvinNeo/tidb-engine-ext that referenced this pull request Aug 4, 2022
close tikv#13160

Use force_send to send ApplyRes

Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
CalvinNeo added a commit to pingcap/tidb-engine-ext that referenced this pull request Aug 5, 2022
* raftstore: make `UNREACHABLE_BACKOFF` configurable (tikv#13193)

close tikv#13054

make `UNREACHABLE_BACKOFF` configurable.

Signed-off-by: 5kbpers <hustmh@gmail.com>

* raftstore: use force_send to send ApplyRes (tikv#13168) (tikv#13171)

close tikv#13160, ref tikv#13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>

* f

Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
CalvinNeo added a commit to pingcap/tidb-engine-ext that referenced this pull request Aug 8, 2022
and unsafe backoff

* raftstore: use force_send to send ApplyRes (tikv#13168)

close tikv#13160

Use force_send to send ApplyRes

Signed-off-by: 5kbpers <hustmh@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>

Co-authored-by: 5kbpers <hustmh@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot added a commit that referenced this pull request Aug 22, 2022
close #13160, ref #13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit that referenced this pull request Sep 22, 2022
close #13160, ref #13168

Use force_send to send ApplyRes

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: Xinye Tao <xy.tao@outlook.com>

Co-authored-by: 5kbpers <hustmh@gmail.com>
Co-authored-by: Xinye Tao <xy.tao@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-4.0 Type: Need cherry pick to release 4.0 needs-cherry-pick-release-5.0 Type: Need cherry pick to release 5.0 needs-cherry-pick-release-5.1 Type: Need cherry pick to release 5.1 needs-cherry-pick-release-5.2 Type: Need cherry pick to release-5.2 needs-cherry-pick-release-5.3 Type: Need cherry pick to release-5.3 needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. needs-cherry-pick-release-6.2 release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

raftstore: apply res may be dropped silently
6 participants