Class LaggingCommitIndexException

  • All Implemented Interfaces:
    Serializable

    public class LaggingCommitIndexException
    extends RaftException
    Thrown when a Raft node's current commit index is smaller than the commit index specified in a RaftNode.query(Object, QueryPolicy, long) call. This exception means that the Raft node instance cannot execute the given query by preserving the monotonicity of the observed state. Please see the Section: 6.4 Processing read-only queries more efficiently of the Raft dissertation for more details.
    See Also:
    Serialized Form
    • Constructor Detail

      • LaggingCommitIndexException

        public LaggingCommitIndexException​(long commitIndex,
                                           long expectedCommitIndex,
                                           RaftEndpoint leader)