-
Notifications
You must be signed in to change notification settings - Fork 721
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
client: fix tso service discovery at the first time for NewClientWithAPIContext #6749
client: fix tso service discovery at the first time for NewClientWithAPIContext #6749
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6749 +/- ##
==========================================
+ Coverage 74.26% 74.34% +0.08%
==========================================
Files 411 411
Lines 43002 43013 +11
==========================================
+ Hits 31934 31977 +43
+ Misses 8212 8175 -37
- Partials 2856 2861 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
d94b0ec
to
da81f2d
Compare
BTW, how about printing the keyspace ID when the mode changes? |
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
da81f2d
to
8944815
Compare
/merge |
@binshi-bing: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: 8944815
|
Before this fix, the issue can be consistently reproed in the staging env. It can be consistently reproed by pd-tso-bench with -keyspace-name option. root@tso-bench:/# ./pd-tso-bench -v -duration 250000s -pd "http://serverless-cluster-pd-0.serverless-cluster-pd-peer.tidb-serverless.svc:2379/" -client 1 -c 1 -interval 30s -keyspace-name "2oVzWDxP4sSxu9f" Start benchmark #0, duration: 250000s |
After the fix, the issue is gone and the client log is expected. root@tso-bench:/# ./pd-tso-bench -v -duration 250000s -pd "http://serverless-cluster-pd-0.serverless-cluster-pd-peer.tidb-serverless.svc:2379/" -client 1 -c 1 -interval 10s -keyspace-name "2oVzWDxP4sSxu9f" Start benchmark #0, duration: 250000s count: 30787, max: 20.4116ms, min: 0.2205ms, avg: 0.3239ms |
What problem does this PR solve?
Issue Number: Close #6748
What is changed and how does it work?
Check List
Tests
For the detailed result of manual test, see comments below.
Release note