#[non_exhaustive]pub enum NodeAttemptHistoryError {
AttemptIdReused {
attempt_id: AttemptId,
},
ActivationMismatch,
JournalNotAfterPrevious,
ClockRegression,
FenceEpochRegression,
WorkerChangedWithinEpoch,
WorkerReusedAcrossEpoch,
UnfinishedAttemptNotSuperseded,
PreviousAttemptSucceeded,
RetryNotAuthorized {
advice: RetryAdvice,
},
RetryDelayNotElapsed {
delay_millis: i64,
failed_at: Timestamp,
started_at: Timestamp,
},
}Expand description
Invalid physical-attempt history for one logical node activation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AttemptIdReused
A physical attempt identity was used twice in the supplied history.
ActivationMismatch
A successor changed the logical node activation.
JournalNotAfterPrevious
A successor start did not strictly follow the preceding durable record.
ClockRegression
A successor durable clock preceded the preceding record.
FenceEpochRegression
Worker ownership epoch moved backwards.
WorkerChangedWithinEpoch
One epoch named two different worker attempts.
WorkerReusedAcrossEpoch
A higher epoch improperly reused an earlier worker attempt identity.
UnfinishedAttemptNotSuperseded
An unfinished attempt was retried without a higher fencing epoch.
PreviousAttemptSucceeded
A successful logical activation was executed again.
RetryNotAuthorized
Failure evidence did not authorize an automatic retry.
Fields
advice: RetryAdviceExplicit advice that blocked retry.
RetryDelayNotElapsed
A successor start preceded the explicit safe-after delay.
Trait Implementations§
Source§impl Clone for NodeAttemptHistoryError
impl Clone for NodeAttemptHistoryError
Source§impl Debug for NodeAttemptHistoryError
impl Debug for NodeAttemptHistoryError
Source§impl Display for NodeAttemptHistoryError
impl Display for NodeAttemptHistoryError
impl Eq for NodeAttemptHistoryError
Source§impl Error for NodeAttemptHistoryError
impl Error for NodeAttemptHistoryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()