lightning: fix incorrect _tidb_rowid allocator value after import for table with AUTO_ID_CACHE=1 (#46171)#46210
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
/lgtm |
|
/test pull-br-integration-test |
|
@D3Hunter: The specified target(s) for
Use DetailsIn 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. |
|
/hold wait lightning ci |
|
@D3Hunter: No presubmit jobs available for pingcap/tidb@release-7.1-20230818-v7.1.1 DetailsIn 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. |
|
/test pull-br-integration-test |
|
@D3Hunter: The specified target(s) for
Use DetailsIn 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. |
|
/run-br-integration-test |
|
@D3Hunter: No presubmit jobs available for pingcap/tidb@release-7.1-20230818-v7.1.1 DetailsIn 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. |
|
/run-integration-br-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/run-integration-br-test |
|
/test all |
|
@D3Hunter: No presubmit jobs available for pingcap/tidb@release-7.1-20230818-v7.1.1 DetailsIn 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. |
|
/retest-required |
|
/run-integration-br-test |
1 similar comment
|
/run-integration-br-test |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release-7.1-20230818-v7.1.1 #46210 +/- ##
================================================================
Coverage ? 73.4315%
================================================================
Files ? 1202
Lines ? 376239
Branches ? 0
================================================================
Hits ? 276278
Misses ? 82307
Partials ? 17654 |
|
/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_rowidandauto_incrementid whenAUTO_ID_CACHE=1, see #39041, andALTER TABLE x AUTO_INCREMENT=xonly works on the allocator ofauto_incrementin 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 entryWhat 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.