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.