Class CorruptSegmentInfoException

All Implemented Interfaces:
Serializable

public class CorruptSegmentInfoException extends CorruptIndexException
Thrown when a single segment's _N.si file cannot be read, because it is missing or corrupt, while the commit point that references it parsed far enough to name the segment.

Unlike a plain CorruptIndexException, this carries the name of the affected segment, so a caller such as CheckIndex can report which segment is broken rather than only that something was. The root cause is always attached, since it is what names the file on disk.

See Also:
NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Constructor Details

    • CorruptSegmentInfoException

      public CorruptSegmentInfoException(String segmentName, String message, DataInput input, Throwable cause)
      Create an exception naming the segment whose .si could not be read.
      Parameters:
      segmentName - name of the affected segment, must not be null
      message - description of what went wrong
      input - the input being read when the failure was detected
      cause - the underlying failure, must not be null
  • Method Details

    • getSegmentName

      public String getSegmentName()
      Returns the name of the segment whose .si file could not be read.