Skip to content

Cannot handle a rare case for flash back table #1664

@zanmato1984

Description

@zanmato1984

Current tombstone + flash back strategy cannot handle the following rare case:

  • Alter table by widening a column
  • Insert a row with the widened column's value to be out of the range of the type before widening
  • Drop table
  • TiFlash does a full schema sync and directly tombstones the table (with the alter diff missed)
  • TiFlash flushes the new inserted row into storage

In such a case, TiFlash won't be able to decode this row and errors out "overflow detected".

But as you can see, this is a extremely rare case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions