CorruptLogException

class CorruptLogException(message: String, val file: String, val offset: Long = -1, cause: Throwable? = null) : StoreException

The write-ahead log cannot be read as one this implementation wrote.

Raised for a bad checksum with intact data behind it, a gap in the sequence numbers, a record whose contents contradict its own lengths, and — under LogRecoveryMode.STRICT — any unreadable trailing bytes at all.

A torn tail, which is what an interrupted write leaves behind, is not corruption: those bytes were never acknowledged to anyone. See LogRecoveryMode.

Constructors

Link copied to clipboard
constructor(message: String, file: String, offset: Long = -1, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

name of the log file that failed to read.

Link copied to clipboard
open val message: String?
Link copied to clipboard

byte offset within that file at which reading stopped, or -1 if no single byte is to blame.