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

pd/client: retry validating the endpoints when creating RPC client #3851

Merged
merged 7 commits into from Jan 3, 2019

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented Nov 28, 2018

Signed-off-by: nolouch nolouch@gmail.com

What have you changed? (mandatory)

fix #3827, retry connect the PD. no need to sleep.

./bin/pd-server  --data-dir=pd --log-file=pd.log &
sleep 5
./bin/tikv-server --pd="127.0.0.1:2379" --data-dir=tikv -A 127.0.0.1:20165 --log-file=tikv.log &
sleep 5
./bin/tidb-server --store=tikv --path="127.0.0.1:2379"

What are the type of the changes? (mandatory)

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

Manual test

@rleungx rleungx added the type/enhancement Type: Issue - Enhancement label Nov 29, 2018
@siddontang
Copy link
Contributor

do we need to add unit test?

Signed-off-by: nolouch <nolouch@gmail.com>
@nolouch
Copy link
Contributor Author

nolouch commented Dec 11, 2018

PTAL @overvenus @Connor1996

Connor1996
Connor1996 previously approved these changes Dec 11, 2018
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

Signed-off-by: nolouch <nolouch@gmail.com>
Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

LGTM

@overvenus overvenus added the status/LGT2 Status: PR - There are already 2 approvals label Jan 3, 2019
@Connor1996 Connor1996 merged commit 9b97668 into tikv:master Jan 3, 2019
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
…ikv#3851)

* pd/client: retry validating the endpoints when creating RPC client

Signed-off-by: nolouch <nolouch@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Status: PR - There are already 2 approvals type/enhancement Type: Issue - Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry connecting to pd on startup
5 participants