Skip to content

Failure recovery #31

@albe

Description

@albe

After a crash and potentially broken records, the storage should heal itself.

This can be achieved by following steps:

  • truncate all indexes to valid file sizes (currently throws an new Error('Index file is corrupt!'))
  • check if the partition contains an invalid document (unfinished write), if so, truncate the partition (currently throws an new Error('Can only truncate on valid document boundaries.'))
  • check if the partition contains more documents than it's index, if so, reindex the missing documents
  • check if the partition contains less documents than it's index, if so, truncate the index

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions