pub enum ComputeError {
Show 32 variants
Storage(StorageError),
Sparql(String),
UnsupportedSparql(String),
Internal(String),
Router(RouterError),
Transport(Error),
HexastoreInsert {
axis: PartitionAxis,
attempts: u32,
message: String,
},
HexastoreScan {
axis: PartitionAxis,
attempts: u32,
message: String,
},
HexastoreFlush {
axis: PartitionAxis,
attempts: u32,
message: String,
},
HexastoreCompact {
axis: PartitionAxis,
attempts: u32,
message: String,
},
RegistryFlush {
attempts: u32,
message: String,
},
RegistryCompact {
attempts: u32,
message: String,
},
RegisterStrings {
attempts: u32,
message: String,
},
ResolveStrings {
attempts: u32,
message: String,
},
RegistryResponseLength {
got: usize,
want: usize,
},
Stats(String),
NamedGraphCatalog {
attempts: u32,
message: String,
},
AllAxesFailed(String),
PathPairBudget {
budget: u64,
discovered: u64,
},
Cancelled,
DeadlineExceeded,
TooManyTerms,
Spill(String),
Io(Error),
UnsupportedRdfFormat {
path: PathBuf,
},
RdfParse {
path: PathBuf,
source: RdfParseError,
},
InvalidBaseIri {
iri: String,
source: IriParseError,
},
InvalidGraphIri {
iri: String,
source: IriParseError,
},
InvalidQuad(String),
InvalidLiteral(String),
ParserThreadPanicked,
IngestUnsupported,
}Expand description
Failure on the compute write or SELECT path.
Variants§
Storage(StorageError)
RDF term / quad encoding or decoding failed.
Sparql(String)
The query is not valid SPARQL.
Known semantic peg phrases (GROUP BY projection, BIND override, …) are rewritten at parse time; other parser dumps are stored as-is.
UnsupportedSparql(String)
Valid SPARQL that the MVP query engine does not implement.
Internal(String)
An executor invariant was violated — a route the code was supposed to make unreachable was taken. Always a bug: the query aborts loudly instead of returning a silently wrong answer.
Router(RouterError)
Static cluster address lookup failed.
Transport(Error)
gRPC transport or channel connect failure.
HexastoreInsert
A single hexastore axis rejected or failed the insert after retries.
Fields
axis: PartitionAxisAxis that failed.
HexastoreScan
A hexastore ScanPattern failed after retries.
Fields
axis: PartitionAxisAxis that failed.
HexastoreFlush
A hexastore FlushMemtables failed after retries.
Fields
axis: PartitionAxisAxis that failed.
HexastoreCompact
A hexastore CompactRange failed after retries.
Fields
axis: PartitionAxisAxis that failed.
RegistryFlush
String-registry FlushMemtables failed after retries.
Fields
RegistryCompact
String-registry CompactRange failed after retries.
Fields
RegisterStrings
String-registry RegisterStrings failed after retries.
Fields
ResolveStrings
String-registry ResolveStrings failed after retries.
Fields
RegistryResponseLength
A registry response did not line up with the hashes requested.
Stats(String)
Sketch profile decode / stats-path failure (Phase 7).
NamedGraphCatalog
S-axis named-graph catalog RPC failed after retries.
Fields
AllAxesFailed(String)
Every hexastore axis failed; no durable write.
PathPairBudget
A property-path walk discovered more distinct (start, end) pairs than
the configured budget. This is a circuit breaker, not a SPARQL hop cap:
results are not silently truncated.
Fields
Cancelled
Cooperative cancellation: the query’s cancel token was set.
DeadlineExceeded
The query’s wall-clock deadline was reached during execution.
TooManyTerms
Query intern table hit u32::MAX distinct terms.
Spill(String)
TermId page spill / external sort / Grace join filesystem failure.
Io(Error)
Filesystem I/O while reading an RDF ingest file.
UnsupportedRdfFormat
RDF file extension is not a known syntax (and not a .gz wrapper of one).
RdfParse
Oxigraph parser rejected the RDF input.
InvalidBaseIri
Base IRI derived from the file path (or supplied by the caller) is not valid.
InvalidGraphIri
Named-graph IRI supplied for ingest is not a valid IRI.
InvalidQuad(String)
A quad violated a Waratah data-validity rule and was rejected before
any RPC was sent. Today the single rule: the object of an
exactly-rdf:type predicate must be an IRI or a blank node — RDF
syntax permits a literal there, but a literal class is semantically
wrong and the TSG index assumes node-only slot-0 terms (all node
encodings are exactly 17 bytes). Unconditional on every write path;
this is a data-validity contract, not a --strict-sparql query
deviation.
InvalidLiteral(String)
A typed literal violated a plugin data-validity rule and was rejected before the failing write chunk issued any RPC.
ParserThreadPanicked
The RDF parser thread panicked.
IngestUnsupported
This compute backend does not accept writes (test mocks without ingest).
Implementations§
Source§impl ComputeError
impl ComputeError
Sourcepub fn is_transient_status(status: &Status) -> bool
pub fn is_transient_status(status: &Status) -> bool
Whether a tonic status is worth retrying in MVP (idempotent Put).
Trait Implementations§
Source§impl Debug for ComputeError
impl Debug for ComputeError
Source§impl Display for ComputeError
impl Display for ComputeError
Source§impl Error for ComputeError
impl Error for ComputeError
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 From<Error> for ComputeError
impl From<Error> for ComputeError
Source§impl From<Error> for ComputeError
impl From<Error> for ComputeError
Source§impl From<ExecError> for ComputeError
impl From<ExecError> for ComputeError
Source§impl From<RouterError> for ComputeError
impl From<RouterError> for ComputeError
Source§fn from(source: RouterError) -> Self
fn from(source: RouterError) -> Self
Source§impl From<StorageError> for ComputeError
impl From<StorageError> for ComputeError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Auto Trait Implementations§
impl Freeze for ComputeError
impl !RefUnwindSafe for ComputeError
impl Send for ComputeError
impl Sync for ComputeError
impl Unpin for ComputeError
impl UnsafeUnpin for ComputeError
impl !UnwindSafe for ComputeError
Blanket Implementations§
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].