vector: Fix building vector index on DeltaVS may lead to delta compact failure (#10311)#10353
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@JaySon-Huang This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions 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 ti-community-infra/tichi repository. |
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
/unhold |
[LGTM Timeline notifier]Timeline:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, JinheLin, Lloyd-Pottiger 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 |
This is an automated cherry-pick of #10311
What problem does this PR solve?
Issue Number: close #10310, ref #9600
Problem Summary: Introduced by #9546 in the vector update workload
In
DeltaMergeStore::segmentEnsureDeltaLocalIndex, the function will update the persisted ColumnFiles in DeltaVS.tiflash/dbms/src/Storages/DeltaMerge/DeltaMergeStore_InternalSegment.cpp
Lines 1126 to 1136 in b153a8f
In
ColumnFilePersistedSet::installCompactionResultsit will check whether the persisted ColumnFiles are changed during the minor compaction. If the persisted ColumnFiles not matched, it will throw an exception as the issue describe.tiflash/dbms/src/Storages/DeltaMerge/Delta/ColumnFilePersistedSet.cpp
Lines 326 to 352 in b153a8f
So the issue is cause by local index on the DeltaVS changed the persisted ColumnFiles between Minor Compaction.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note