Package io.microraft.exception
Class LaggingCommitIndexException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.microraft.exception.RaftException
-
- io.microraft.exception.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 aRaftNode.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 Summary
Constructors Constructor Description LaggingCommitIndexException(long commitIndex, long expectedCommitIndex, RaftEndpoint leader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class io.microraft.exception.RaftException
getLeader
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
LaggingCommitIndexException
public LaggingCommitIndexException(long commitIndex, long expectedCommitIndex, RaftEndpoint leader)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classRaftException
-
-