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

Method ShouldRetry

cpp/src/arrow/filesystem/s3fs_test.cc:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115class ShortRetryStrategy : public S3RetryStrategy {
116 public:
117 bool ShouldRetry(const AWSErrorDetail& error, int64_t attempted_retries) override {
118 if (error.message.find(kFileExistsMessage) != error.message.npos) {
119 // Minio returns "file exists" errors (when calling mkdir) as internal errors,
120 // which would trigger spurious retries.
121 return false;
122 }
123 return IsRetryable(error) && (attempted_retries * kRetryInterval < kMaxRetryDuration);
124 }
125
126 int64_t CalculateDelayBeforeNextRetry(const AWSErrorDetail& error,
127 int64_t attempted_retries) override {

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected