-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: avoid schema version without diff #58549
Conversation
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wjhuang2016 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #58549 +/- ##
================================================
+ Coverage 73.5154% 74.8509% +1.3354%
================================================
Files 1681 1726 +45
Lines 464479 472563 +8084
================================================
+ Hits 341464 353718 +12254
+ Misses 102179 96564 -5615
- Partials 20836 22281 +1445
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@D3Hunter: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
as DDL runs concurrently, almost all running DDL txn overlap in time range, so more write conflict and makes DDL performance worse |
What problem does this PR solve?
Issue Number: close #58486, #58483
Problem Summary:
What changed and how does it work?
incr schema version
andset diff for the version
in one txn, there will be no version without diff, i.e. no hole, and diff will all be committed in version order, so this pr fix on owner change, when DDL with higher schema version commits before a DDL with lower schema version, MDL fails to update version for it #58483 tooCheck List
Tests
same step as in #58486, now
tidb-server-5000
will fail the txn withwrite conflict
, andtidb-server-4000
will run it successfully, and all node can see the new tableSide effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.