Skip to main content

ControllerError

Enum ControllerError 

Source
pub enum ControllerError {
Show 45 variants IoError { context: String, io_error: Error, backtrace: Backtrace, }, SchemaParseError { error: String, }, SchemaValidationError { error: String, }, CheckpointParseError { error: String, }, CheckpointDoesNotMatchPipeline, RestoreInProgress, BootstrapInProgress, StepError(StepError), UnexpectedStep { actual: Step, expected: Step, }, ReplayFailure { error: String, }, NotSupported { error: String, }, IrParseError { error: String, }, CliArgsError { error: String, }, Config { config_error: Box<ConfigError>, }, UnknownInputEndpoint { endpoint_name: String, }, PreprocessorCreateError { endpoint_name: String, error: String, }, PostprocessorCreateError { endpoint_name: String, error: String, }, UnknownOutputEndpoint { endpoint_name: String, }, ParseError { endpoint_name: String, error: Box<ParseError>, }, EncodeError { endpoint_name: String, error: Error, }, InputTransportError { endpoint_name: String, fatal: bool, error: Error, }, OutputTransportError { endpoint_name: String, fatal: bool, error: Error, }, CommandError { endpoint_name: String, error: String, }, DbspError { error: Error, }, PrometheusError { error: String, }, DbspPanic, ControllerPanic, ControllerExit, StorageError { context: String, error: StorageError, backtrace: Box<Backtrace>, }, EnterpriseFeature(&'static str), SuspendError(SuspendError), UnexpectedJsonStructure { reason: String, }, PipelineRestarted { error: String, }, UnknownEndpointInCompletionToken { endpoint_id: u64, }, CheckpointFetchError { error: String, }, CheckpointPushError { error: String, }, TransactionInProgress, NoTransactionInProgress, InvalidInitialStatus(RuntimeDesiredStatus), InvalidStandby(&'static str), InvalidStartupTransition { from: RuntimeDesiredStatus, to: RuntimeDesiredStatus, }, BootstrapRejectedByUser, BootstrapNotAllowed { error: String, }, UnexpectedBootstrap { bootstrap_info: Option<BootstrapInfo>, }, UnexpectedRuntimeVersion { error: String, },
}
Expand description

Controller error.

Reports all errors that arise from operating a streaming pipeline consisting of input adapters, output adapters, and a DBSP circuit, via the controller API.

Variants§

§

IoError

I/O error.

Fields

§context: String

Describes the context where the error occurred.

§io_error: Error
§backtrace: Backtrace
§

SchemaParseError

Error parsing program schema.

Fields

§error: String
§

SchemaValidationError

Error validating program schema.

Fields

§error: String
§

CheckpointParseError

Error parsing the checkpoint.

Fields

§error: String
§

CheckpointDoesNotMatchPipeline

§

RestoreInProgress

Operation cannot be initiated now because the pipeline is being restored from a checkpoint.

§

BootstrapInProgress

Operation cannot be initiated now because the pipeline is bootstrapping new/modified views.

§

StepError(StepError)

Error in journal metadata.

§

UnexpectedStep

Unexpected step number.

Fields

§actual: Step
§expected: Step
§

ReplayFailure

Step replay failure.

Fields

§error: String
§

NotSupported

Feature is not supported.

Fields

§error: String
§

IrParseError

Error parsing program IR file.

Fields

§error: String
§

CliArgsError

Error parsing CLI arguments.

Fields

§error: String
§

Config

Invalid controller configuration.

Fields

§config_error: Box<ConfigError>
§

UnknownInputEndpoint

Unknown input endpoint name.

Fields

§endpoint_name: String
§

PreprocessorCreateError

Error creating a user-defined preprocessor

Fields

§endpoint_name: String
§error: String
§

PostprocessorCreateError

Error creating a user-defined postprocessor

Fields

§endpoint_name: String
§error: String
§

UnknownOutputEndpoint

Unknown output endpoint name.

Fields

§endpoint_name: String
§

ParseError

Error parsing input data.

Parser errors are expected to be recoverable, i.e., the parser should be able to successfully parse new valid inputs after an error.

Fields

§endpoint_name: String
§

EncodeError

Encode error.

Error encoding the last output batch. Encoder errors are expected to be recoverable, i.e., the encoder should be able to successfully parse new valid inputs after an error.

Fields

§endpoint_name: String
§error: Error
§

InputTransportError

Input transport endpoint error.

Fields

§endpoint_name: String
§fatal: bool
§error: Error
§

OutputTransportError

Output transport endpoint error.

Fields

§endpoint_name: String
§fatal: bool
§error: Error
§

CommandError

Fields

§endpoint_name: String
§error: String
§

DbspError

Error evaluating the DBSP circuit.

Fields

§error: Error
§

PrometheusError

Error inside the Prometheus module.

Fields

§error: String
§

DbspPanic

Panic inside the DBSP runtime.

§

ControllerPanic

Panic inside the DBSP controller.

§

ControllerExit

Controller terminated before command could be executed.

§

StorageError

Storage error.

Fields

§context: String

Describes the context where the error occurred.

§backtrace: Box<Backtrace>
§

EnterpriseFeature(&'static str)

Enterprise-only feature.

§

SuspendError(SuspendError)

Cannot checkpoint or suspend.

§

UnexpectedJsonStructure

An unexpected JSON serialized structure was encountered while processing the /stats endpoint.

Fields

§reason: String
§

PipelineRestarted

The request relates to an old incarnation of the pipeline.

Fields

§error: String
§

UnknownEndpointInCompletionToken

Completion token specified non-existing endpoint id. This indicates that the endpoint was removed or the token is invalid.

Fields

§endpoint_id: u64
§

CheckpointFetchError

Error fetching checkpoint from remote object storage.

Fields

§error: String
§

CheckpointPushError

Error pushing checkpoint to remote object storage.

Fields

§error: String
§

TransactionInProgress

§

NoTransactionInProgress

§

InvalidInitialStatus(RuntimeDesiredStatus)

Invalid initial desired status.

§

InvalidStandby(&'static str)

Invalid standby configuration,

§

InvalidStartupTransition

Invalid startup status transition.

§

BootstrapRejectedByUser

§

BootstrapNotAllowed

Fields

§error: String
§

UnexpectedBootstrap

Fields

§bootstrap_info: Option<BootstrapInfo>
§

UnexpectedRuntimeVersion

Unexpected runtime version

Fields

§error: String

Implementations§

Source§

impl ControllerError

Source

pub fn io_error(context: impl Display, io_error: IoError) -> Self

Source

pub fn not_supported(error: &str) -> Self

Source

pub fn schema_parse_error(error: &str) -> Self

Source

pub fn checkpoint_does_not_match_pipeline() -> Self

Source

pub fn checkpoint_fetch_error(error: String) -> Self

Source

pub fn checkpoint_push_error(error: String) -> Self

Source

pub fn schema_validation_error(error: &str) -> Self

Source

pub fn ir_parse_error(error: &str) -> Self

Source

pub fn cli_args_error<E>(error: &E) -> Self
where E: ToString,

Source

pub fn unknown_input_endpoint(endpoint_name: &str) -> Self

Source

pub fn unknown_output_endpoint(endpoint_name: &str) -> Self

Source

pub fn pipeline_config_parse_error<E>(error: &E) -> Self
where E: ToString,

Source

pub fn parser_config_parse_error<E>( endpoint_name: &str, error: &E, config: &str, ) -> Self
where E: ToString,

Source

pub fn encoder_config_parse_error<E>( endpoint_name: &str, error: &E, config: &str, ) -> Self
where E: ToString,

Source

pub fn duplicate_input_endpoint(endpoint_name: &str) -> Self

Source

pub fn duplicate_input_stream(stream_name: &str) -> Self

Source

pub fn unknown_input_format(endpoint_name: &str, format_name: &str) -> Self

Source

pub fn unknown_input_transport( endpoint_name: &str, transport_name: &str, ) -> Self

Source

pub fn duplicate_output_endpoint(endpoint_name: &str) -> Self

Source

pub fn duplicate_output_stream(stream_name: &str) -> Self

Source

pub fn unknown_output_format(endpoint_name: &str, format_name: &str) -> Self

Source

pub fn unknown_output_transport( endpoint_name: &str, transport_name: &str, ) -> Self

Source

pub fn unknown_input_stream(endpoint_name: &str, stream_name: &str) -> Self

Source

pub fn unknown_output_stream(endpoint_name: &str, stream_name: &str) -> Self

Source

pub fn unknown_index(endpoint_name: &str, index_name: &str) -> Self

Source

pub fn not_an_index(endpoint_name: &str, index_name: &str) -> Self

Source

pub fn input_format_not_supported(endpoint_name: &str, error: &str) -> Self

Source

pub fn output_format_not_supported(endpoint_name: &str, error: &str) -> Self

Source

pub fn input_format_not_specified(endpoint_name: &str) -> Self

Source

pub fn output_format_not_specified(endpoint_name: &str) -> Self

Source

pub fn invalid_encoder_configuration(endpoint_name: &str, error: &str) -> Self

Source

pub fn invalid_parser_configuration(endpoint_name: &str, error: &str) -> Self

Source

pub fn invalid_transport_configuration(endpoint_name: &str, error: &str) -> Self

Source

pub fn invalid_output_buffer_configuration( endpoint_name: &str, error: &str, ) -> Self

Source

pub fn input_transport_error( endpoint_name: &str, fatal: bool, error: AnyError, ) -> Self

Source

pub fn output_transport_error( endpoint_name: &str, fatal: bool, error: AnyError, ) -> Self

Source

pub fn command_error(endpoint_name: &str, error: &str) -> Self

Source

pub fn parse_error(endpoint_name: &str, error: ParseError) -> Self

Source

pub fn encode_error(endpoint_name: &str, error: AnyError) -> Self

Source

pub fn prometheus_error<E>(error: &E) -> Self
where E: ToString,

Source

pub fn dbsp_error(error: DbspError) -> Self

Source

pub fn dbsp_panic() -> Self

Source

pub fn controller_panic() -> Self

Source

pub fn storage_error(context: impl Display, error: StorageError) -> Self

Source

pub fn pipeline_restarted(error: &str) -> Self

Source

pub fn unknown_endpoint_in_completion_token(endpoint_id: u64) -> Self

Source

pub fn kind(&self) -> ErrorKind

Trait Implementations§

Source§

impl Debug for ControllerError

Source§

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

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

impl DetailedError for ControllerError

Source§

fn error_code(&self) -> Cow<'static, str>

Source§

fn log_level(&self) -> Level

Source§

impl DetailedError for ControllerError

Source§

fn error_code(&self) -> Cow<'static, str>

Identifying name of the error.
Source§

impl Display for ControllerError

Source§

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

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

impl Error for ControllerError

1.30.0 · 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<ConfigError> for ControllerError

Source§

fn from(config_error: ConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ControllerError

Source§

fn from(error: DbspError) -> Self

Converts to this type from the input type.
Source§

impl From<SuspendError> for ControllerError

Source§

fn from(error: SuspendError) -> Self

Converts to this type from the input type.
Source§

impl ResponseError for ControllerError

Source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
Source§

fn error_response(&self) -> HttpResponse<BoxBody>

Creates full response for error. Read more
Source§

impl Serialize for ControllerError

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

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

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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> CustomError for T
where T: Display + Debug + Send + Sync + 'static,

Source§

fn as_any(&self) -> &(dyn Any + Send + Sync + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + Send + Sync + 'static)

Source§

fn as_box_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

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

Source§

impl<T> Error for T
where T: Error + 'static,

Source§

fn as_error(&self) -> &(dyn Error + 'static)

Gets this error as an std::error::Error.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

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

Source§

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

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

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

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool