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:
  • Constructor Details

    • LaggingCommitIndexException

      public LaggingCommitIndexException(long commitIndex, long expectedCommitIndex, RaftEndpoint leader)
      Creates an instance of this exception.
      Parameters:
      commitIndex - the current commit index of the RaftNode which throws this exception
      expectedCommitIndex - the commit index expected by the caller
      leader - the leader endpoint if it is known, null otherwise
  • Method Details