#[non_exhaustive]pub enum OptimizeError {
Protocol {
source: TableProtocolError,
backtrace: Backtrace,
},
NotApplicable {
table_root: String,
},
MixedSegmentRewrite {
source: Box<EntityRewriteError>,
},
InvalidSegmentBounds {
source: IndexValueError,
backtrace: Backtrace,
},
SchemaValidation {
source: Box<SchemaCompatibilityError>,
},
CoverageSidecar {
source: Box<CoverageSidecarError>,
},
InvalidStagedPath {
description: &'static str,
path: String,
source: Box<StorageError>,
},
InvalidStagedPlan {
reason: String,
backtrace: Backtrace,
},
CountOverflow {
field: &'static str,
backtrace: Backtrace,
},
Commit {
source: CommitError,
},
Rollback {
source: Box<OptimizeError>,
cleanup_errors: Vec<StorageError>,
},
}Expand description
Errors owned by an entity-layout optimization operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Protocol
The table protocol does not permit this client to optimize.
Fields
source: TableProtocolErrorComplete table protocol failure.
NotApplicable
Entity-layout optimization requires at least one entity column.
MixedSegmentRewrite
Staging replacements for one mixed segment failed.
Fields
source: Box<EntityRewriteError>Complete mixed-segment rewrite failure.
InvalidSegmentBounds
Live segment bounds cannot be ordered in one native index domain.
Fields
source: IndexValueErrorComplete bounds validation failure.
SchemaValidation
Optimization cannot use the table’s canonical schema.
Fields
source: Box<SchemaCompatibilityError>Complete schema compatibility failure.
CoverageSidecar
A coverage sidecar required to validate a staged plan could not be read.
Fields
source: Box<CoverageSidecarError>Complete coverage sidecar failure.
InvalidStagedPath
A staged replacement path failed table-relative storage validation.
Fields
source: Box<StorageError>Complete storage path validation failure.
InvalidStagedPlan
A staged optimization plan violated an atomic publication invariant.
Fields
CountOverflow
An optimization count could not be represented without wrapping.
Fields
Commit
Publishing the optimization transaction failed.
Fields
source: CommitErrorComplete transaction-log failure.
Rollback
Optimization failed and one or more owned staged objects could not be removed.
Fields
source: Box<OptimizeError>Original optimization failure that triggered rollback.
cleanup_errors: Vec<StorageError>Typed cleanup failure for every staged object that could not be removed.
Trait Implementations§
Source§impl Debug for OptimizeError
impl Debug for OptimizeError
Source§impl Display for OptimizeError
impl Display for OptimizeError
Source§impl Error for OptimizeError
impl Error for OptimizeError
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()
Source§impl ErrorCompat for OptimizeError
impl ErrorCompat for OptimizeError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Error::source. Read moreSource§impl From<CommitError> for OptimizeError
impl From<CommitError> for OptimizeError
Source§fn from(error: CommitError) -> Self
fn from(error: CommitError) -> Self
Source§impl From<CoverageSidecarError> for OptimizeError
impl From<CoverageSidecarError> for OptimizeError
Source§fn from(error: CoverageSidecarError) -> Self
fn from(error: CoverageSidecarError) -> Self
Source§impl From<EntityRewriteError> for OptimizeError
impl From<EntityRewriteError> for OptimizeError
Source§fn from(error: EntityRewriteError) -> Self
fn from(error: EntityRewriteError) -> Self
Source§impl From<IndexValueError> for OptimizeError
impl From<IndexValueError> for OptimizeError
Source§fn from(error: IndexValueError) -> Self
fn from(error: IndexValueError) -> Self
Source§impl From<SchemaCompatibilityError> for OptimizeError
impl From<SchemaCompatibilityError> for OptimizeError
Source§fn from(error: SchemaCompatibilityError) -> Self
fn from(error: SchemaCompatibilityError) -> Self
Source§impl From<TableProtocolError> for OptimizeError
impl From<TableProtocolError> for OptimizeError
Source§fn from(error: TableProtocolError) -> Self
fn from(error: TableProtocolError) -> Self
Auto Trait Implementations§
impl !Freeze for OptimizeError
impl !RefUnwindSafe for OptimizeError
impl !UnwindSafe for OptimizeError
impl Send for OptimizeError
impl Sync for OptimizeError
impl Unpin for OptimizeError
impl UnsafeUnpin for OptimizeError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 more