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

Function IsConnectError

cpp/src/arrow/filesystem/s3_internal.h:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template <typename Error>
71inline bool IsConnectError(const Aws::Client::AWSError<Error>& error) {
72 if (error.ShouldRetry()) {
73 return true;
74 }
75 // Sometimes Minio may fail with a 503 error
76 // (exception name: XMinioServerNotInitialized,
77 // message: "Server not initialized, please try again")
78 if (error.GetExceptionName() == "XMinioServerNotInitialized") {
79 return true;
80 }
81 return false;
82}
83
84template <typename ErrorType>
85inline std::optional<std::string> BucketRegionFromError(

Callers 1

ShouldRetryMethod · 0.85

Calls 1

ShouldRetryMethod · 0.45

Tested by

no test coverage detected