summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/http/http.cpp
diff options
context:
space:
mode:
authorermolovd <[email protected]>2026-03-12 22:24:10 +0300
committerermolovd <[email protected]>2026-03-12 22:49:08 +0300
commit4e222e2aff9b602868a2f56feb9400293afd634c (patch)
tree81d03bbcfe3aca9c37b6bb763622d9dca9b51bdf /yt/cpp/mapreduce/http/http.cpp
parentb362f3a3b9d713a6370cad73a09b27d27e6ac73b (diff)
fetch dynamic config through cache, don't scare the users with expected errors
commit_hash:03d0aeb6901ca96aae2f8570482204f0ca707c88
Diffstat (limited to 'yt/cpp/mapreduce/http/http.cpp')
-rw-r--r--yt/cpp/mapreduce/http/http.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/http/http.cpp b/yt/cpp/mapreduce/http/http.cpp
index 188f6e80281..79a172a0417 100644
--- a/yt/cpp/mapreduce/http/http.cpp
+++ b/yt/cpp/mapreduce/http/http.cpp
@@ -4,6 +4,7 @@
#include "core.h"
#include "helpers.h"
+#include <yt/cpp/mapreduce/common/expected_error_guard.h>
#include <yt/cpp/mapreduce/common/helpers.h>
#include <yt/cpp/mapreduce/common/retry_lib.h>
#include <yt/cpp/mapreduce/common/wait_proxy.h>
@@ -803,14 +804,19 @@ THttpResponse::THttpResponse(
HttpCode_,
httpHeaders.Str().data());
- YT_LOG_ERROR("%v",
- errorString.data());
-
if (auto parsedResponse = ParseError(HttpInput_->Headers())) {
ErrorResponse_ = parsedResponse.GetRef();
} else {
ErrorResponse_ = TErrorResponse(TYtError(errorString + " - X-YT-Error is missing in headers"), Context_.RequestId);
}
+
+ if (ErrorResponse_ && TExpectedErrorGuard::IsErrorExpected(*ErrorResponse_)) {
+ YT_LOG_INFO("%v",
+ errorString.data());
+ } else {
+ YT_LOG_ERROR("%v",
+ errorString.data());
+ }
break;
}
}