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

Method ShouldRetry

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

Source from the content-addressed store, hash-verified

1734class TestRetryStrategy : public S3RetryStrategy {
1735 public:
1736 bool ShouldRetry(const S3RetryStrategy::AWSErrorDetail& error,
1737 int64_t attempted_retries) final {
1738 errors_encountered_.emplace_back(error);
1739 constexpr int64_t MAX_RETRIES = 2;
1740 return attempted_retries < MAX_RETRIES;
1741 }
1742
1743 int64_t CalculateDelayBeforeNextRetry(const S3RetryStrategy::AWSErrorDetail& error,
1744 int64_t attempted_retries) final {

Callers

nothing calls this directly

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected