ForwardedProposalFailedException
class ForwardedProposalFailedException(message: String = "the leader reported the forwarded proposal failed for a non-retryable reason") : Exception
Thrown by RaftNode.propose on a non-leader when the leader the proposal was forwarded to reports that it failed for a non-retryable reason (#2922).
It is deliberately not a LeadershipLostException, so a retry loop that catches that type does not catch this one: the leader judged the failure permanent, and sending the same command again would fail the same way. Surface it to the caller instead of retrying.
No leader in this release reports such a failure. A reused request id with changed command bytes is reported as RequestIdConflictException instead, on the leader and the forwarder alike. This type exists so that the receiving side already honours the wire's meaning when a leader does.
Constructors
Link copied to clipboard
constructor(message: String = "the leader reported the forwarded proposal failed for a non-retryable reason")