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

server: set timeout for MoveLeader #1538

Merged
merged 1 commit into from
May 16, 2019

Conversation

disksing
Copy link
Contributor

Signed-off-by: disksing i@disksing.com

What problem does this PR solve?

When multiple PDs calls MoveLeader, one will succeed and others will block in MoveLeader function.

What is changed and how it works?

Add timeout when calling MoveLeader.
Cherry-pick #1533

Check List

Tests

  • Integration test

Signed-off-by: disksing <i@disksing.com>
@disksing
Copy link
Contributor Author

/run-all-tests tidb=release-2.1 tikv=release-2.1 tidb-test=release-2.1

@disksing disksing merged commit 228c5d7 into tikv:release-2.1 May 16, 2019
@disksing disksing deleted the move-leader-2.1 branch May 16, 2019 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants