Package io.microraft.exception
Class CannotReplicateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.microraft.exception.RaftException
-
- io.microraft.exception.CannotReplicateException
-
- All Implemented Interfaces:
Serializable
public class CannotReplicateException extends RaftException
Thrown when an operation cannot be temporarily replicated. It can occur in one of the following cases:- There are too many inflight (i.e., appended but not-yet-committed) operations in the Raft group leader,
- There are too many inflight (i.e., pending at the Raft leader to be executed) queries,
- A new membership change is attempted before an entry is committed in the current term.
-
-
Constructor Summary
Constructors Constructor Description CannotReplicateException(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
-
CannotReplicateException
public CannotReplicateException(RaftEndpoint leader)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classRaftException
-
-