CorruptSegmentException

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

A sorted segment cannot be read as one this implementation wrote.

Raised for a bad footer, a block whose checksum does not match, a handle that points outside the file, and a document whose Variant bytes do not decode. Unlike a torn log tail there is no benign reading of any of these: a segment is written once, forced, and only then recorded in the manifest, so nothing in it was ever half-written by a live writer. Damage here happened after the fact.

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 segment file that failed to read.

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

byte offset within it, or -1 if no single byte is to blame.