Class SoftBPlusTree.IndexNodeOutdatedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.infinispan.util.SoftBPlusTree.IndexNodeOutdatedException
All Implemented Interfaces:
Serializable
Enclosing class:
SoftBPlusTree<V>

public static class SoftBPlusTree.IndexNodeOutdatedException extends RuntimeException
Thrown by a BPlusTree.PublishFunction or during node resolution when the underlying data for a tree entry is no longer available — for example, because a compactor deleted the data file between the time the index was read and the time the entry was accessed.

SoftBPlusTree retries SoftBPlusTree.get(byte[]), SoftBPlusTree.put(byte[], V), SoftBPlusTree.remove(byte[]), and SoftBPlusTree.publish(BPlusTree.PublishFunction) up to MAX_OUTDATED_RETRIES times when this exception is thrown. Callers should throw this instead of returning null when a missing resource indicates a transient concurrent modification rather than a permanent error.

See Also:
  • Constructor Details

    • IndexNodeOutdatedException

      public IndexNodeOutdatedException(String message)