-
Notifications
You must be signed in to change notification settings - Fork 287
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
*: Using the global singleton for pd client and tikv client, and fix pd client freeze #1217
Conversation
Please add some tests. |
LGTM. If we do want tests, can we assert that we only have one pdClient globally by comparing pointers? |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #1217 +/- ##
================================================
+ Coverage 46.2837% 46.3076% +0.0238%
================================================
Files 115 115
Lines 11961 11957 -4
================================================
+ Hits 5536 5537 +1
+ Misses 5801 5794 -7
- Partials 624 626 +2 |
It's hard to unit test in current code base, can we test it in integration tests via failpoint? |
LGTM |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #1219 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #1220 |
What problem does this PR solve?
Using the global singleton for pd client and tikv client, and fix pd client freeze
What is changed and how it works?
The modification of this PR bypasses the bug about pd client freeze by using a global singleton for pd client
Check List
Tests
Release note