Skip to main content

Violation

Enum Violation 

Source
pub enum Violation {
Show 16 variants LostUpdate { key: String, missing: Vec<u64>, }, DuplicateUpdate { key: String, duplicated: Vec<u64>, }, NoConflictsObserved, UniqueWriteLost { key: String, }, WritersDidNotComplete { completed: usize, total: usize, }, NoProgress, MixedLiveAndTombstone { key: String, states: Vec<RawState>, }, ReplicasDisagree { key: String, states: Vec<RawState>, }, ConsumerRawMismatch { key: String, replica: usize, }, FinalReadFailed { key: String, replica: usize, }, LifecycleKeyVanished { key: String, }, NoDeleteConflictsObserved, NoDeletesCommitted, LifecycleNotChecked, AckedDeleteLost { key: String, }, StaleBaseCommitted { key: String, base: String, },
}
Expand description

A violated invariant. An empty check result means the soak passed.

Variants§

§

LostUpdate

Committed op-ids missing from the contended key’s final set — a lost update.

Fields

§missing: Vec<u64>
§

DuplicateUpdate

An op-id appears more than once in a contended key’s final set.

Fields

§duplicated: Vec<u64>
§

NoConflictsObserved

No conflicts were observed anywhere — the race invariant was not exercised.

§

UniqueWriteLost

An acked unique-key write is missing or has the wrong value after chaos.

Fields

§

WritersDidNotComplete

Not every writer task completed within the deadline (liveness).

Fields

§completed: usize
§total: usize
§

NoProgress

The run committed nothing at all (liveness).

§

MixedLiveAndTombstone

A lifecycle key is live on some replicas and a tombstone on others.

Fields

§states: Vec<RawState>
§

ReplicasDisagree

Replicas that read successfully disagree on a lifecycle key’s raw state (different revisions, or absent on some).

Fields

§states: Vec<RawState>
§

ConsumerRawMismatch

A replica’s consumer read disagrees with its own raw read on whether the key is live: a tombstone served to consumers, or a live record hidden from them. Checked on liveness only, not on revision — see the module doc.

Fields

§replica: usize
§

FinalReadFailed

A replica could not be read after settling.

Fields

§replica: usize
§

LifecycleKeyVanished

A lifecycle key with committed writes reads as absent — delete must write a tombstone, never physically remove.

Fields

§

NoDeleteConflictsObserved

Lifecycle ops ran but no delete ever lost a race — the delete-conflict invariant was not exercised.

§

NoDeletesCommitted

Lifecycle ops ran but no delete was ever acknowledged (a no-op delete over an existing tombstone counts).

§

LifecycleNotChecked

Lifecycle ops ran but no per-replica final state was collected.

§

AckedDeleteLost

An acked delete of a unique key reads as live again, or not as a tombstone.

Fields

§

StaleBaseCommitted

Two conditional writes committed on the same base revision of one key: (a) two edits, or (b) an edit plus a delete that actually wrote a tombstone on that base (delete_wrote == Some(true)). Under OCC at most one can win, so this is a lost update or a resurrection over a tombstone (spec §3.2, §5.4). An edit sharing a base only with deletes whose write evidence is Some(false) or None is ambiguous (a stale delete can land as a no-op over a later tombstone and still report Deleted) and is skipped, never flagged.

Fields

§base: String

Trait Implementations§

Source§

impl Clone for Violation

Source§

fn clone(&self) -> Violation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Violation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Violation

Source§

impl PartialEq for Violation

Source§

fn eq(&self, other: &Violation) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Violation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more