-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ddl: fix mix DDLs blocks 2*lease on unistore #18468
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18468 +/- ##
===========================================
Coverage 79.5501% 79.5501%
===========================================
Files 541 541
Lines 146676 146676
===========================================
Hits 116681 116681
Misses 20695 20695
Partials 9300 9300 |
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.
LGTM
@wjhuang2016,Thanks for your review. |
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.
LGTM
@crazycs520,Thanks for your review. |
/run-all-tests |
/run-all-tests |
@zimulala merge failed. |
UT failed, related to #18526 /run-unit-test |
What problem does this PR solve?
Issue Number: close #18456
Do the test in #18456, this will block 90s(2*lease), and it means
OwnerCheckAllVersions
returns "context deadline exceeded". And this problem will happen on unistore, not on TiKV.Problem Summary:
On unistore we use
MockSchemaSyncer
, we need to doMockSchemaSyncer.OwnerCheckAllVersions
likeschemaVersionSyncer.OwnerCheckAllVersions
.Check List
Tests
Using the test in create index concurrently lead to block #18456.
This case hard to test, because it only blocks 2*lease and the lease in the test only 200ms. Even if we add a test, it must be unstable.
Release note