Skip to main content

ComputeError

Enum ComputeError 

Source
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: PartitionAxis

Axis that failed.

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

HexastoreScan

A hexastore ScanPattern failed after retries.

Fields

§axis: PartitionAxis

Axis that failed.

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

HexastoreFlush

A hexastore FlushMemtables failed after retries.

Fields

§axis: PartitionAxis

Axis that failed.

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

HexastoreCompact

A hexastore CompactRange failed after retries.

Fields

§axis: PartitionAxis

Axis that failed.

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

RegistryFlush

String-registry FlushMemtables failed after retries.

Fields

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

RegistryCompact

String-registry CompactRange failed after retries.

Fields

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

RegisterStrings

String-registry RegisterStrings failed after retries.

Fields

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

ResolveStrings

String-registry ResolveStrings failed after retries.

Fields

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

RegistryResponseLength

A registry response did not line up with the hashes requested.

Fields

§got: usize

Values received.

§want: usize

Hashes requested.

§

Stats(String)

Sketch profile decode / stats-path failure (Phase 7).

§

NamedGraphCatalog

S-axis named-graph catalog RPC failed after retries.

Fields

§attempts: u32

Attempts made (including the first).

§message: String

Last status / error message.

§

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

§budget: u64

Configured maximum distinct pairs.

§discovered: u64

Pairs materialised before aborting.

§

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).

Fields

§path: PathBuf

Path whose extension could not be mapped to an RDF syntax.

§

RdfParse

Oxigraph parser rejected the RDF input.

Fields

§path: PathBuf

File being parsed.

§source: RdfParseError

Parser failure.

§

InvalidBaseIri

Base IRI derived from the file path (or supplied by the caller) is not valid.

Fields

§iri: String

IRI that failed to parse.

§source: IriParseError

Parse failure.

§

InvalidGraphIri

Named-graph IRI supplied for ingest is not a valid IRI.

Fields

§iri: String

IRI that failed to parse.

§source: IriParseError

Parse failure.

§

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

Source

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

Source§

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

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

impl Display for ComputeError

Source§

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

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

impl Error for ComputeError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for ComputeError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ComputeError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ExecError> for ComputeError

Source§

fn from(err: ExecError) -> Self

Converts to this type from the input type.
Source§

impl From<RouterError> for ComputeError

Source§

fn from(source: RouterError) -> Self

Converts to this type from the input type.
Source§

impl From<StorageError> for ComputeError

Source§

fn from(source: StorageError) -> Self

Converts to this type from the input type.

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

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

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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
§

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,

§

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