#[non_exhaustive]pub struct TransactionInProgressException {
pub message: Option<String>,
/* private fields */
}Expand description
The transaction with the given request token is already in progress.
Recommended Settings
This is a general recommendation for handling the TransactionInProgressException. These settings help ensure that the client retries will trigger completion of the ongoing TransactWriteItems request.
-
Set
clientExecutionTimeoutto a value that allows at least one retry to be processed after 5 seconds have elapsed since the first attempt for theTransactWriteItemsoperation. -
Set
socketTimeoutto a value a little lower than therequestTimeoutsetting. -
requestTimeoutshould be set based on the time taken for the individual retries of a single HTTP request for your use case, but setting it to 1 second or higher should work well to reduce chances of retries andTransactionInProgressExceptionerrors. -
Use exponential backoff when retrying and tune backoff if needed.
Assuming default retry policy, example timeout settings based on the guidelines above are as follows:
Example timeline:
-
0-1000 first attempt
-
1000-1500 first sleep/delay (default retry policy uses 500 ms as base delay for 4xx errors)
-
1500-2500 second attempt
-
2500-3500 second sleep/delay (500 * 2, exponential backoff)
-
3500-4500 third attempt
-
4500-6500 third sleep/delay (500 * 2^2)
-
6500-7500 fourth attempt (this can trigger inline recovery since 5 seconds have elapsed since the first attempt reached TC)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message: Option<String>Implementations§
Source§impl TransactionInProgressException
impl TransactionInProgressException
Sourcepub fn builder() -> TransactionInProgressExceptionBuilder
pub fn builder() -> TransactionInProgressExceptionBuilder
Creates a new builder-style object to manufacture TransactionInProgressException.
Trait Implementations§
Source§impl Clone for TransactionInProgressException
impl Clone for TransactionInProgressException
Source§fn clone(&self) -> TransactionInProgressException
fn clone(&self) -> TransactionInProgressException
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Error for TransactionInProgressException
impl Error for TransactionInProgressException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for TransactionInProgressException
impl PartialEq for TransactionInProgressException
Source§fn eq(&self, other: &TransactionInProgressException) -> bool
fn eq(&self, other: &TransactionInProgressException) -> bool
self and other values to be equal, and is used by ==.Source§impl ProvideErrorMetadata for TransactionInProgressException
impl ProvideErrorMetadata for TransactionInProgressException
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Source§impl RequestId for TransactionInProgressException
impl RequestId for TransactionInProgressException
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for TransactionInProgressException
Auto Trait Implementations§
impl Freeze for TransactionInProgressException
impl RefUnwindSafe for TransactionInProgressException
impl Send for TransactionInProgressException
impl Sync for TransactionInProgressException
impl Unpin for TransactionInProgressException
impl UnwindSafe for TransactionInProgressException
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 more