Skip to content

Commit 5ff916b

Browse files
committed
Fix YT parallel table writer hang after Abort
commit_hash:a5ac90256dbdaeb37858aeacaf24931ed10c8d4d
1 parent 47a80ed commit 5ff916b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yt/cpp/mapreduce/client/retryful_writer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ namespace NYT {
2121
TRetryfulWriter::~TRetryfulWriter()
2222
{
2323
NDetail::FinishOrDie(this, AutoFinish_, "TRetryfulWriter");
24+
if (WriterState_ == Ok) {
25+
Y_ABORT_IF(AutoFinish_); // if AutoFinish_, FinishOrDie would have called Finish
26+
Abort();
27+
}
2428
}
2529

2630
void TRetryfulWriter::CheckWriterState()

0 commit comments

Comments
 (0)