You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume you added options.ThreadCount_ + 1 write tasks to writer.
options.ThreadCount_ tasks are running now and the last one is waiting in the ThreadPool_ queue, i.e. all TaskFutures_ are not ready and this part of code always ended up in else { break; }
Assume you added
options.ThreadCount_ + 1
write tasks to writer.options.ThreadCount_
tasks are running now and the last one is waiting in theThreadPool_
queue, i.e. allTaskFutures_
are not ready and this part of code always ended up inelse { break; }
ytsaurus/yt/cpp/mapreduce/library/parallel_io/parallel_writer-inl.h
Lines 204 to 214 in d2ed627
Then you call
Finish()
and start waiting for the completion of the task here:ytsaurus/yt/cpp/mapreduce/library/parallel_io/parallel_writer-inl.h
Line 171 in d2ed627
After that something went wrong, for example cluster downtime/network problems/etc.
Nothing will be returned to the
WritersPool_
due to exception fromtask.Process
:ytsaurus/yt/cpp/mapreduce/library/parallel_io/parallel_writer-inl.h
Lines 231 to 235 in d2ed627
And after first failed write task the last task (with
options.ThreadCount_ + 1
number) will start waiting here:ytsaurus/yt/cpp/mapreduce/library/parallel_io/parallel_writer-inl.h
Lines 251 to 253 in d2ed627
But no one will wake up this task here:
ytsaurus/yt/cpp/mapreduce/library/parallel_io/parallel_writer-inl.h
Line 273 in d2ed627
And also
WriterPool_
will always be empty.The text was updated successfully, but these errors were encountered: