From f213a8abfb1674e74497f8c3c60cfa72d37b7088 Mon Sep 17 00:00:00 2001 From: laihui <1353307710@qq.com> Date: Thu, 29 Aug 2024 15:45:50 +0800 Subject: [PATCH] do not execute close if create rowset failed when loading MOW table --- be/src/runtime/load_stream.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/be/src/runtime/load_stream.cpp b/be/src/runtime/load_stream.cpp index aa1749caace3e6..066d81cc17de86 100644 --- a/be/src/runtime/load_stream.cpp +++ b/be/src/runtime/load_stream.cpp @@ -281,6 +281,13 @@ Status TabletStream::close() { return _status; } + // it is necessary to check status after wait_func, + // for create_rowset could fail during add_segment when loading to MOW table, + // in this case, should skip close to avoid submit_calc_delete_bitmap_task which could cause coredump. + if (!_status.ok()) { + return _status; + } + auto close_func = [this, &mu, &cv]() { signal::set_signal_task_id(_load_id); auto st = _load_stream_writer->close();