pub enum CompactionServiceJobStatus {
Success,
Failure,
Aborted,
UseLocal,
}Expand description
How a remote compaction job ended.
Maps onto CompactionServiceJobStatus in options.h. The same four values
are used for scheduling a job, waiting on it, and reporting installation.
Variants§
Success
The step worked.
Failure
The step failed.
Reported from wait this still allows a
serialized result, and RocksDB reads the remote Status out of it to
explain the failure. With no result the compaction fails with
Incomplete.
Aborted
The step was cancelled.
The compaction fails with Aborted and is not retried locally.
UseLocal
Run this compaction on the primary DB instead.
The only status that leaves the DB no worse off than having no compaction service at all, so it is the right answer whenever the worker fleet cannot take the job.
Trait Implementations§
Source§impl Clone for CompactionServiceJobStatus
impl Clone for CompactionServiceJobStatus
Source§fn clone(&self) -> CompactionServiceJobStatus
fn clone(&self) -> CompactionServiceJobStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompactionServiceJobStatus
Source§impl Debug for CompactionServiceJobStatus
impl Debug for CompactionServiceJobStatus
impl Eq for CompactionServiceJobStatus
impl StructuralPartialEq for CompactionServiceJobStatus
Auto Trait Implementations§
impl Freeze for CompactionServiceJobStatus
impl RefUnwindSafe for CompactionServiceJobStatus
impl Send for CompactionServiceJobStatus
impl Sync for CompactionServiceJobStatus
impl Unpin for CompactionServiceJobStatus
impl UnsafeUnpin for CompactionServiceJobStatus
impl UnwindSafe for CompactionServiceJobStatus
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
Mutably borrows from an owned value. Read more