pub struct ProtoRegionError {Show 21 fields
pub message: String,
pub not_leader: Option<NotLeader>,
pub region_not_found: Option<RegionNotFound>,
pub key_not_in_region: Option<KeyNotInRegion>,
pub epoch_not_match: Option<EpochNotMatch>,
pub server_is_busy: Option<ServerIsBusy>,
pub stale_command: Option<StaleCommand>,
pub store_not_match: Option<StoreNotMatch>,
pub raft_entry_too_large: Option<RaftEntryTooLarge>,
pub max_timestamp_not_synced: Option<MaxTimestampNotSynced>,
pub read_index_not_ready: Option<ReadIndexNotReady>,
pub proposal_in_merging_mode: Option<ProposalInMergingMode>,
pub data_is_not_ready: Option<DataIsNotReady>,
pub region_not_initialized: Option<RegionNotInitialized>,
pub disk_full: Option<DiskFull>,
pub recovery_in_progress: Option<RecoveryInProgress>,
pub flashback_in_progress: Option<FlashbackInProgress>,
pub flashback_not_prepared: Option<FlashbackNotPrepared>,
pub is_witness: Option<IsWitness>,
pub mismatch_peer_id: Option<MismatchPeerId>,
pub bucket_version_not_match: Option<BucketVersionNotMatch>,
}Expand description
Protobuf-generated region-level error returned by TiKV.
This type is generated from TiKV’s protobuf definitions and may change in a future release even if the wire format is compatible. Error wraps all region errors, indicates an error encountered by a request.
Fields§
§message: StringThe error message
not_leader: Option<NotLeader>§region_not_found: Option<RegionNotFound>§key_not_in_region: Option<KeyNotInRegion>§epoch_not_match: Option<EpochNotMatch>§server_is_busy: Option<ServerIsBusy>§stale_command: Option<StaleCommand>§store_not_match: Option<StoreNotMatch>§raft_entry_too_large: Option<RaftEntryTooLarge>§max_timestamp_not_synced: Option<MaxTimestampNotSynced>§read_index_not_ready: Option<ReadIndexNotReady>§proposal_in_merging_mode: Option<ProposalInMergingMode>§data_is_not_ready: Option<DataIsNotReady>§region_not_initialized: Option<RegionNotInitialized>§disk_full: Option<DiskFull>§recovery_in_progress: Option<RecoveryInProgress>Online recovery is still in performing, reject writes to avoid potential issues
flashback_in_progress: Option<FlashbackInProgress>Flashback is still in performing, reject any read or write to avoid potential issues. NOTICE: this error is non-retryable, the request should fail ASAP when it meets this error.
flashback_not_prepared: Option<FlashbackNotPrepared>If the second phase flashback request is sent to a region that is not prepared for the flashback, this error will be returned. NOTICE: this error is non-retryable, the client should retry the first phase flashback request when it meets this error.
is_witness: Option<IsWitness>IsWitness is the error variant that tells a request be handle by witness which should be forbidden and retry.
mismatch_peer_id: Option<MismatchPeerId>§bucket_version_not_match: Option<BucketVersionNotMatch>BucketVersionNotMatch is the error variant that tells the request buckets version is not match.
Trait Implementations§
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(e: ProtoRegionError) -> Error
fn from(e: ProtoRegionError) -> Error
Source§impl Message for Error
impl Message for Error
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request