prometheus/wal
Krasi Georgiev 0493efb7c5
repair wal when the record cannot be decoded (#453)
* repair wal when the record cannot be decoded

Currently repair is run only when the error happens in the reader.

A corruption can occur after the record is read and when it is decoded.
This change wraps the error at decoding as a CorruptionErr as this error
is expected to trigger a repair.

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-11-30 13:37:04 +02:00
..
wal.go repair wal when the record cannot be decoded (#453) 2018-11-30 13:37:04 +02:00
wal_test.go return an error when the last wal segment record is torn. (#451) 2018-11-28 15:15:11 +02:00