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

BR: Fix stuck when many missing-peer regions in cluster #28497

Merged
merged 8 commits into from
Oct 9, 2021

Conversation

YuJuncen
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #27534

Problem Summary:
Even BR would skip when store count less than max-replica, the replica requirement via placement rules is still possible to make the restore stuck.

What is changed and how it works?

What's Changed:
"Parallel" all scatter request... (No many goroutines spawned, see the code)

How it Works:
So it wouldn't be stuck.

Check List

Tests

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

Release note

Fixed a bug that caused BR get stuck when many missing-peer regions in cluster.

@YuJuncen YuJuncen added sig/migrate component/br This issue is related to BR of TiDB. labels Sep 30, 2021
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 30, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • 3pointer
  • kennytm

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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 30, 2021
@YuJuncen YuJuncen changed the title BR: Fix stuck BR: Fix stuck when many missing-peer regions in cluster Sep 30, 2021
br/pkg/restore/split.go Outdated Show resolved Hide resolved
br/pkg/restore/split.go Outdated Show resolved Hide resolved
@YuJuncen YuJuncen requested a review from kennytm October 8, 2021 08:43
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

rest LGTM

br/pkg/restore/split_client.go Outdated Show resolved Hide resolved
br/pkg/restore/split_test.go Outdated Show resolved Hide resolved
br/pkg/restore/split_test.go Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 8, 2021
Copy link
Contributor

@3pointer 3pointer 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 Oct 9, 2021
@YuJuncen
Copy link
Contributor Author

YuJuncen commented Oct 9, 2021

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 53fa6ac

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 9, 2021
@ti-chi-bot ti-chi-bot merged commit 6782628 into pingcap:master Oct 9, 2021
@YuJuncen
Copy link
Contributor Author

YuJuncen commented Oct 9, 2021

/run-cherry-picker

ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Oct 9, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.2 in PR #28680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/br This issue is related to BR of TiDB. needs-cherry-pick-release-5.2 release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/migrate size/L Denotes a PR that changes 100-499 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.

br restore hang
5 participants