Skip to content

Conversation

qinling0210
Copy link
Contributor

@qinling0210 qinling0210 commented Sep 2, 2025

What problem does this PR solve?

Issue
The scenario with error is as below. Create index erases table cache, and then show index adds a new table cache. Optimize index intends to add index info to table cache, but it can not see index1, so the index info in table cache is not latest. Then snapshot reads the wong index info in table cache.

create index (idx1)-------show index ------snapshot
** |---------------optimize-------------------------------|

Solution

We allow txn to change the table cache only when the txn begins after all committed write txns.
If it is conflicted with any committed write txn, the info it intends to change to the table cache may be not correct.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@qinling0210 qinling0210 self-assigned this Sep 2, 2025
@qinling0210 qinling0210 added the ci PR can be test label Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant