Skip to content

PageFile's meta is broken after we ignore incomplete write batches #1932

@JaySon-Huang

Description

@JaySon-Huang
  1. Write some data into PageStorage but not completed
  2. Restore the storage from the disk, it will ignore the incomplete write batch and continue to overwrite data from the current offset that ignore the incomplete write batches

It may leave broken data on PageFile's meta and next time restoring data from disk, it may throw exceptions like "PageFile binary version not match, unknown [version=0] [file=..." or checksum does not match etc...

An issue reported from asktug: https://asktug.com/t/topic/92894

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions