-
Notifications
You must be signed in to change notification settings - Fork 718
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
Support service mode switching for tso and change the value type of tso primary to tsopb.Participant #6160
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. |
Hi @binshi-bing. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
3c35e9e
to
1d4759b
Compare
1d4759b
to
2fa8284
Compare
01a04b6
to
b9d078e
Compare
/ok-to-test |
1aa294d
to
4a55a1f
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6160 +/- ##
==========================================
- Coverage 74.54% 74.48% -0.06%
==========================================
Files 393 393
Lines 38527 38627 +100
==========================================
+ Hits 28719 28772 +53
- Misses 7268 7300 +32
- Partials 2540 2555 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 17 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
a19a401
to
d876055
Compare
d876055
to
852f666
Compare
CI failed. |
… as the value type of tso primary Support tso service switched between PD mode and API mode Add server/client implemenation for the GetClusterInfo rpc and support service mode in the client Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
… keep the current mode instead of swtiching to unknown mode. Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Fixed the following cases: 1. Timeout issue. Previously, after starting the API service, the test suite tried to create the PD client before starting TSO servers. PD client will try to connect to TSO service with 30 retries and 30s in total. The fix is to change the retry time, overriden by the option passed to NewClientWithContext, to 1. 2. GetTS Failure. Previously, after staring TSO server, the test immediate sent GetTS() requests, but it won't succeed until the TSO servers complete the primary election and the client refresh the primary address. The fix is to add WaitForPrimaryServing() and WaitForTSOServiceAvailable() and to catch the io.EOF for stream.send()/recv() and refresh primary address immediately. 3. The test suite is too heavy. Turn SetupTest/TeardownTest to SetupSuite/TearDownSuite to avoid duplicate setups of the cluster. After the above fixes, the test suite needs more than 50s and will timeout in vscode but ok when running from commandline. Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
af5df68
to
57b2e40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest lgtm
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
57b2e40
to
2f5422f
Compare
/merge |
@JmPotato: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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: 2f5422f
|
Support service mode switching for and change the value type of tso primary
What problem does this PR solve?
Issue Number: Ref #5836
What is changed and how does it work?
Check List
Tests
Conclusion: no performance regression.
w/ change
Total:
count: 28949005, max: 6.1310ms, min: 0.0410ms, avg: 2.0541ms
<1ms: 479588, >1ms: 11500091, >2ms: 16969184, >5ms: 142, >10ms: 0, >30ms: 0, >50ms: 0, >100ms: 0, >200ms: 0, >400ms: 0, >800ms: 0, >1s: 0
count: 28949005, <1ms: 1.66%, >1ms: 39.73%, >2ms: 58.62%, >5ms: 0.00%, >10ms: 0.00%, >30ms: 0.00%, >50ms: 0.00%, >100ms: 0.00%, >200ms: 0.00%, >400ms: 0.00%, >800ms: 0.00%, >1s: 0.00%
P0.5: 2.0470ms, P0.8: 2.2553ms, P0.9: 2.4288ms, P0.99: 3.1310ms
w/o change
Total:
count: 28181983, max: 9.9771ms, min: 0.0616ms, avg: 2.0791ms
<1ms: 367685, >1ms: 10210926, >2ms: 17602085, >5ms: 1287, >10ms: 0, >30ms: 0, >50ms: 0, >100ms: 0, >200ms: 0, >400ms: 0, >800ms: 0, >1s: 0
count: 28181983, <1ms: 1.30%, >1ms: 36.23%, >2ms: 62.46%, >5ms: 0.00%, >10ms: 0.00%, >30ms: 0.00%, >50ms: 0.00%, >100ms: 0.00%, >200ms: 0.00%, >400ms: 0.00%, >800ms: 0.00%, >1s: 0.00%
P0.5: 2.0682ms, P0.8: 2.2742ms, P0.9: 2.4449ms, P0.99: 3.1436ms
Release note