added read retry to s3 provider
This commit is contained in:
@@ -914,15 +914,15 @@ auto sia_provider::read_file_bytes(const std::string &api_path,
|
||||
i++) {
|
||||
long response_code{};
|
||||
const auto notify_retry = [&]() {
|
||||
if (response_code) {
|
||||
if (response_code == 0) {
|
||||
utils::error::raise_api_path_error(
|
||||
__FUNCTION__, api_path, response_code,
|
||||
__FUNCTION__, api_path, api_error::comm_error,
|
||||
"read file bytes failed|offset|" + std::to_string(offset) +
|
||||
"|size|" + std::to_string(size) + "|retry|" +
|
||||
std::to_string(i + 1U));
|
||||
} else {
|
||||
utils::error::raise_api_path_error(
|
||||
__FUNCTION__, api_path, api_error::comm_error,
|
||||
__FUNCTION__, api_path, response_code,
|
||||
"read file bytes failed|offset|" + std::to_string(offset) +
|
||||
"|size|" + std::to_string(size) + "|retry|" +
|
||||
std::to_string(i + 1U));
|
||||
|
Reference in New Issue
Block a user