-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
P: IndexAffects the indexing layerAffects the indexing layerP: StorageAffects the storage layerAffects the storage layerdocumentationenhancement
Description
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
Labels
P: IndexAffects the indexing layerAffects the indexing layerP: StorageAffects the storage layerAffects the storage layerdocumentationenhancement