-
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
lightning: fix incorrect _tidb_rowid allocator value after import for table with AUTO_ID_CACHE=1 (#46171) #46183
lightning: fix incorrect _tidb_rowid allocator value after import for table with AUTO_ID_CACHE=1 (#46171) #46183
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
/lgtm |
/run-integration-br-test |
/lgtm |
@D3Hunter: Your lgtm message is repeated, so it is ignored. In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, lance6716 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 |
/retest |
/hold wait ci |
/run-integration-br-test |
6 similar comments
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
This reverts commit 9e63a06.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release-6.5 #46183 +/- ##
================================================
Coverage ? 73.6722%
================================================
Files ? 1084
Lines ? 347945
Branches ? 0
================================================
Hits ? 256339
Misses ? 75155
Partials ? 16451 |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/retest |
lightning ci pass, some br cases are so unstable, we won't wait them, as this pr only change lightning part those cases're run locally, success |
/unhold |
This is an automated cherry-pick of #46171
What problem does this PR solve?
Issue Number: close #46100
Problem Summary:
since TiDB v6.5.0, we have separate id allocator for
_tidb_rowid
andauto_increment
id whenAUTO_ID_CACHE=1
, see #39041, andALTER TABLE x AUTO_INCREMENT=x
only works on the allocator ofauto_increment
in this case, but if the table have implicit_tidb_rowid
, we should update it's base too to make sure new insert works, else it will reportduplicate entry
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.