MCPcopy Create free account
hub / github.com/apache/arrow / ShouldRetry

Method ShouldRetry

cpp/src/arrow/filesystem/s3fs.cc:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 : retry_strategy_(std::move(retry_strategy)) {}
188
189 bool ShouldRetry(const AWSErrorDetail& detail, int64_t attempted_retries) override {
190 Aws::Client::AWSError<Aws::Client::CoreErrors> error = DetailToError(detail);
191 return retry_strategy_->ShouldRetry(
192 error, static_cast<long>(attempted_retries)); // NOLINT: runtime/int
193 }
194
195 int64_t CalculateDelayBeforeNextRetry(const AWSErrorDetail& detail,
196 int64_t attempted_retries) override {

Callers 3

ShouldRetryMethod · 0.45
ErrorToDetailMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected