pub enum LogicalApplyError {
Gap {
last: u64,
next: u64,
},
Divergence {
expected_term: u64,
got_term: u64,
lsn: u64,
expected: String,
got: String,
},
Apply {
lsn: u64,
source: RedDBError,
},
StaleTermFenced {
record_term: u64,
current_term: u64,
lsn: u64,
},
RangeFenced {
range_id: u64,
lsn: u64,
reason: RangeAdmitError,
},
}Variants§
Gap
Divergence
Apply
StaleTermFenced
Issue #835 — the record’s term is behind the replica’s current term: a returning ex-primary streaming on a stale, superseded term. Rejected at the apply boundary so the deposed primary cannot apply or advance any watermark until it re-syncs under the new term.
RangeFenced
Issue #991 — the record is stamped for a range whose authority
watermark has moved past it: a write from a deposed range owner
(stale ownership epoch) or a superseded timeline (stale term) for the
target range. Rejected at the apply boundary before the LSN state
machine runs — fail-closed, so a stale owner cannot apply or advance
the chain/watermark for that range. Shares the Fenced metrics lane
with the global stale-term fence.
Implementations§
Source§impl LogicalApplyError
impl LogicalApplyError
pub fn kind(&self) -> ApplyErrorKind
Trait Implementations§
Source§impl Debug for LogicalApplyError
impl Debug for LogicalApplyError
Source§impl Display for LogicalApplyError
impl Display for LogicalApplyError
Source§impl Error for LogicalApplyError
impl Error for LogicalApplyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LogicalApplyError
impl !UnwindSafe for LogicalApplyError
impl Forget for LogicalApplyError
impl Freeze for LogicalApplyErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
&'static str: Freeze,
impl Move for LogicalApplyError
impl Send for LogicalApplyError
impl Sync for LogicalApplyError
impl Unpin for LogicalApplyError
impl UnsafeUnpin for LogicalApplyErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request