summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/io/proto_table_reader.cpp
diff options
context:
space:
mode:
authorSavchenko Nadezhda <[email protected]>2024-04-18 10:57:19 +0200
committerGitHub <[email protected]>2024-04-18 11:57:19 +0300
commitb65fd71bd2a02aca196f47954fa03ac9aa94b8a0 (patch)
treebc8f88414f9a6648318388dca5b6a28ec36f8658 /yt/cpp/mapreduce/io/proto_table_reader.cpp
parenta1bcf08e286611efa4a394a53c894ebb954acd93 (diff)
Don't ignore backoff and pass actual exception in Retry() (#3664)
Diffstat (limited to 'yt/cpp/mapreduce/io/proto_table_reader.cpp')
-rw-r--r--yt/cpp/mapreduce/io/proto_table_reader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt/cpp/mapreduce/io/proto_table_reader.cpp b/yt/cpp/mapreduce/io/proto_table_reader.cpp
index c0bf90d2536..6f79619c810 100644
--- a/yt/cpp/mapreduce/io/proto_table_reader.cpp
+++ b/yt/cpp/mapreduce/io/proto_table_reader.cpp
@@ -238,8 +238,8 @@ void TLenvalProtoTableReader::ReadRow(Message* row)
Input_.ResetRetries();
break;
- } catch (const std::exception& ) {
- if (!TLenvalTableReader::Retry()) {
+ } catch (const std::exception& ex) {
+ if (!TLenvalTableReader::Retry(std::make_exception_ptr(ex))) {
throw;
}
}
@@ -300,8 +300,8 @@ void TLenvalProtoTableReader::SkipRow()
ythrow yexception() << "Premature end of stream";
}
break;
- } catch (const std::exception& ) {
- if (!TLenvalTableReader::Retry()) {
+ } catch (const std::exception& ex) {
+ if (!TLenvalTableReader::Retry(std::make_exception_ptr(ex))) {
throw;
}
}