This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replay: add debug option to skip corrupted messages in WAL replay
DebugUnsafeReplayRecoverCorruptedWAL can be used to configure the WAL replay to automatically try recovering from corrupted WAL. Replay will drop remaining messages if a data corruption error is encoutered. The behaviour should be similar to the one Tendermint instructs user to do manually in case of a corrupted WAL: https://github.com/tendermint/tendermint/blob/48f073d796ca4d1063b5f02c5d1b35c2c7e77afc/consensus/state.go#L312-L325
- Loading branch information