Skip to main content

is_condition_failure

Function is_condition_failure 

Source
pub fn is_condition_failure<E: ProvideErrorMetadata>(err: &SdkError<E>) -> bool
Expand description

How hyperfile classifies an error, and which kinds are worth retrying — the rule on s3_error_kind. How hyperfile classifies an error, and which kinds are worth retrying — the rule on s3_error_kind. How hyperfile classifies an error, and which kinds are worth retrying — the rule on s3_error_kind. Whether err is a conditional write refused: the name is taken, or another write was racing for it.

By error code as well as by status, because CompleteMultipartUpload reports a refused precondition as 200 with the error in the body – measured on a directory bucket – and a check of the status alone reads that as some other failure. That matters to more than the message: a refused condition is the one failure a flush answers by trying again at the next checkpoint number.