Does a RaftError always indicate that a node is broken and must shutdown? #320
-
When a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I assume you are using I'd recommend using the latest pub enum ClientWriteError<NID: NodeId> {
#[error(transparent)]
ForwardToLeader(#[from] ForwardToLeader<NID>),
/// When writing a change-membership entry.
#[error(transparent)]
ChangeMembershipError(#[from] ChangeMembershipError<NID>),
#[error(transparent)]
Fatal(#[from] Fatal<NID>),
}
|
Beta Was this translation helpful? Give feedback.
I assume you are using
v0.6.4
, in this versionRaftError::SnapshotMismatch
is only used internally thus an application should have no chance of receiving such an error.I'd recommend using the latest
main
branch in which the errors are better defined:client_write()
will return anClientWriteError
:ClientWriteError
is much more obvious for an application to deal with.