pub struct RecoveryManager { /* private fields */ }Expand description
Distributed recovery manager.
Discovers the latest valid checkpoint, restores operator state, and seeks source connectors to the checkpoint offsets.
Implementations§
Source§impl RecoveryManager
impl RecoveryManager
Sourcepub fn new(checkpointer: Arc<dyn Checkpointer>, config: RecoveryConfig) -> Self
pub fn new(checkpointer: Arc<dyn Checkpointer>, config: RecoveryConfig) -> Self
Create a new recovery manager.
Sourcepub async fn recover(
&self,
restorables: &mut [&mut dyn Restorable],
seekables: &mut [&mut dyn Seekable],
) -> Result<RecoveryResult, RecoveryError>
pub async fn recover( &self, restorables: &mut [&mut dyn Restorable], seekables: &mut [&mut dyn Seekable], ) -> Result<RecoveryResult, RecoveryError>
Run the full recovery sequence.
§Arguments
restorables— mutable references to operator state objectsseekables— mutable references to source connectors
§Errors
Returns RecoveryError if recovery fails (no checkpoint,
corrupt data, operator mismatch, etc.).
Sourcepub async fn recover_typed(
&self,
restorables: &mut [&mut dyn Restorable],
typed_seekables: &mut [&mut dyn TypedSeekable],
) -> Result<RecoveryResult, RecoveryError>
pub async fn recover_typed( &self, restorables: &mut [&mut dyn Restorable], typed_seekables: &mut [&mut dyn TypedSeekable], ) -> Result<RecoveryResult, RecoveryError>
Run the full recovery sequence with typed source seeking (F-E2E-001).
This is the same as recover() but uses
TypedSeekable for type-safe source position restoration.
§Errors
Returns RecoveryError if recovery fails.
Auto Trait Implementations§
impl Freeze for RecoveryManager
impl !RefUnwindSafe for RecoveryManager
impl Send for RecoveryManager
impl Sync for RecoveryManager
impl Unpin for RecoveryManager
impl UnsafeUnpin for RecoveryManager
impl !UnwindSafe for RecoveryManager
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
§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>
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>
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 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>
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.