Skip to content

Fix edge case where empty active segment file is deleted and there are no closed segment files in WAL #387

@CGodiksen

Description

@CGodiksen

If the system crashes when the WAL have just opened a new empty active segment and all closed segments are fully persisted and therefore deleted from the WAL, the WAL can lose track of the current batch id on start up. This happens because the empty active segment is the only reference the WAL has for the current batch id, which means the WAL would start from 0 again if this is deleted, causing duplicate batch ids.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions