-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
Before, update schema version and set schema diff in the same transaction. So after schema version grow up, we can get the schema diff at same time.
For now, We don't allow When schema version grow up, schema diff can not be read.
But now, update schema version and set schema diff not in the same transaction.
- TIDB can only make sure the
schema difffromlastest schema version - 1is valuable.- If the
schema difffromlastest schema version - 1is empty, Then it means may failed in TIDB, in TiFlash, we can skip it. - If the
schema difffromlastest schema version - 1is empty, Then Tiflash should direct apply theschema diff.
- If the
- TIDB can't make sure the
schema diffwithlastest schema versionis not empty.
**So we need to allow empty schema diff when schema version increased. **
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.