LeadershipLostException

class LeadershipLostException(message: String = "leadership lost while proposal was in flight") : Exception

Thrown by RaftNode.propose when this node loses leadership while waiting for the proposal to be committed by a quorum.

The entry may or may not have been replicated to a majority before the step-down. Callers must treat the proposal as having an unknown outcome and should either retry (idempotent commands) or use a deduplication key.

Constructors

Link copied to clipboard
constructor(message: String = "leadership lost while proposal was in flight")

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?