pub enum StoreError {
Show 59 variants
CascadeCycle {
cycle: Vec<String>,
},
Io {
path: PathBuf,
source: Error,
},
NotDirectory {
path: PathBuf,
},
StoreBusy {
path: PathBuf,
},
Lock(StoreLockError),
Durability(DurabilityPolicyError),
Kernel(KernelInitError),
Manifest(ManifestError),
Tokenizer(TokenizerError),
EpochMismatch(EpochMismatch),
EpochUndeclared,
EpochUnstamped,
SchemaMismatch {
persisted: Schema,
declared: Schema,
},
ScanStale {
cursor_generation: u64,
current_generation: u64,
},
InvalidScan {
detail: String,
},
GroupLimitExceeded {
limit: usize,
},
Segment(SegmentError),
DuplicateLiveDocument {
doc_id: DocId,
},
GraphUnavailable {
segment_id: SegmentId,
},
Wal(WalReadError),
WalRecovery(WalRecoveryError),
WalRecord {
seq: LogSeq,
source: VisibleRecordError,
},
WalMutation {
seq: LogSeq,
op: u16,
source: PayloadError,
},
WalRevisionOrder {
seq: LogSeq,
doc_id: DocId,
current: Revision,
attempted: Revision,
},
UnsupportedWalMutation {
seq: LogSeq,
op: u16,
},
WalVector {
seq: LogSeq,
source: QuantError,
},
WalWrite(WalWriteError),
WalRetire(WalRetireError),
Statistics {
component: &'static str,
source: Error,
},
BudgetExceeded {
needed: u64,
budget: u64,
component: &'static str,
},
RecoveryLimit {
component: &'static str,
},
AllocationFailed {
needed: u64,
component: &'static str,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
ActiveRowOverflow,
EmptyActiveSegment,
SealCancelled,
ReadOnly,
SealedTombstoneRecoveryRequired,
ForeignPreparedSegment,
GenerationOverflow,
ConcurrentActiveMutation {
expected_generation: u64,
actual_generation: u64,
},
PartitionBytesOverflow,
PurgeRecovery {
detail: String,
},
Closing,
Closed,
ReadCancelled,
BackgroundStart {
source: Error,
},
BackgroundHandshake,
BackgroundThreadPanicked,
QueryPoolStart {
source: Error,
},
QueryPoolHandshake,
QueryPoolThreadPanicked,
QueryPoolCapacity {
source: String,
},
Synchronization {
component: &'static str,
},
NativeGraphDirectory {
path: PathBuf,
},
SnapshotTarget {
path: PathBuf,
reason: SnapshotTargetReason,
},
SnapshotPin {
detail: &'static str,
},
SnapshotPurgePending,
SnapshotViewsOpen,
}Expand description
An open, lifecycle, or close operation was rejected.
Variants§
CascadeCycle
A declaration would introduce a namespace ownership cycle.
Io
A filesystem operation failed for the named store path.
NotDirectory
The supplied path exists but is not a directory.
StoreBusy
Another writer owns the store’s process or kernel lock.
Lock(StoreLockError)
The writer lock could not be opened or acquired.
Durability(DurabilityPolicyError)
The selected durability mode/tier is unsupported.
Kernel(KernelInitError)
Runtime kernel selection or an explicit override was invalid.
Manifest(ManifestError)
The committed manifest could not be loaded or validated.
Tokenizer(TokenizerError)
The selected tokenizer configuration could not be compiled.
EpochMismatch(EpochMismatch)
The caller’s declared interpretation differs from the persisted one.
EpochUndeclared
Persisted bytes name an epoch but the caller did not declare one.
EpochUnstamped
A pre-epoch manifest cannot be retroactively assigned an identity.
SchemaMismatch
A schema declaration on reopen differed from the committed schema.
Fields
ScanStale
A scan continuation names a different published generation.
Fields
InvalidScan
A document-scan request or predicate is invalid.
GroupLimitExceeded
A grouped count found more distinct values than its group limit.
Segment(SegmentError)
A referenced immutable segment could not be mapped or validated.
DuplicateLiveDocument
More than one live row carried the same stable document id.
The caller selected graph traversal for a sealed segment without a graph.
Wal(WalReadError)
The checked durable WAL prefix could not be opened.
WalRecovery(WalRecoveryError)
A non-empty WAL did not replay through a clean end boundary.
WalRecord
A replayed record’s retained encoded bytes could not be decoded.
Fields
source: VisibleRecordErrorChecked record-access failure.
WalMutation
A checksummed WAL mutation payload violated its versioned contract.
Fields
source: PayloadErrorTyped mutation-payload failure.
WalRevisionOrder
A recovered upsert would make one document’s revision non-monotonic.
Fields
UnsupportedWalMutation
A valid mutation kind has no active-segment application path yet.
Fields
WalVector
A recovered vector passed payload validation but failed quantization.
Fields
source: QuantErrorTyped vector-contract failure.
WalWrite(WalWriteError)
The store-owned WAL writer could not be created or advanced.
WalRetire(WalRetireError)
Retained WAL visibility could not be released through a committed seal.
Statistics
A kernel probe needed for an exact statistics snapshot failed.
Fields
BudgetExceeded
An accounted allocation would exceed a configured ceiling.
Fields
RecoveryLimit
Native recovery exhausted a checked work or scratch allowance.
AllocationFailed
The allocator rejected a checked reservation without aborting.
Fields
DimensionMismatch
An active vector did not match the collection’s established dimension.
ActiveRowOverflow
The active segment exceeded its dense u32 row address space.
EmptyActiveSegment
An explicit seal was requested without any active rows.
SealCancelled
Caller cancellation stopped a seal before its manifest commit point.
ReadOnly
A write-only lifecycle operation was requested from a read-only handle.
SealedTombstoneRecoveryRequired
WAL replay requires sealed tombstone repair that a read-only open cannot publish.
ForeignPreparedSegment
A prepared segment was accounted to a different store handle.
GenerationOverflow
The current snapshot generation cannot be incremented.
ConcurrentActiveMutation
The active generation changed while a serialized writer prepared a commit.
Fields
PartitionBytesOverflow
Exact reclaimed-byte reporting overflowed its u64 contract.
PurgeRecovery
A durable physical-purge intent could not be resumed during open.
Closing
A new operation raced with close after admissions stopped.
Closed
The handle has completed teardown.
ReadCancelled
Close cancelled an admitted read after its drain grace period elapsed.
BackgroundStart
The lifecycle background thread could not be created.
BackgroundHandshake
The lifecycle background thread exited before its startup handshake.
BackgroundThreadPanicked
The lifecycle background thread panicked before close joined it.
QueryPoolStart
A persistent query worker thread could not be created.
QueryPoolHandshake
A persistent query worker exited before its startup handshake.
QueryPoolThreadPanicked
A persistent query worker panicked before close joined it.
QueryPoolCapacity
The operating system could not report a usable query-worker count.
Synchronization
A lifecycle synchronization primitive was poisoned.
NativeGraphDirectory
The directory holds a native graph store, which this legacy store cannot open. Nothing in the directory was changed.
SnapshotTarget
A snapshot target cannot receive a snapshot. Nothing was written.
Fields
reason: SnapshotTargetReasonWhy the target was rejected.
SnapshotPin
The state pinned for a snapshot failed a consistency check. Nothing was published.
SnapshotPurgePending
A physical purge is pending; a snapshot would copy bytes it must remove. Await the purge, then snapshot. Nothing was written.
SnapshotViewsOpen
A physical removal must wait for open in-place snapshots to close.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn kind(&self) -> StoreErrorKind
pub fn kind(&self) -> StoreErrorKind
Classifies this error; see StoreErrorKind.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()