From b44f7058ffe3a80cc48d0e08c03f425ceb9d65ac Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Sun, 31 Dec 2023 19:35:16 +0800 Subject: [PATCH] Revert "[fix](move-memtable) only check missing tablets when commit info is not empty (#29326)" This reverts commit 4634c723d7fb86f434060c0e6fa6168d92630cb9. --- be/src/vec/sink/writer/vtablet_writer_v2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/be/src/vec/sink/writer/vtablet_writer_v2.cpp b/be/src/vec/sink/writer/vtablet_writer_v2.cpp index b0a39ac2a76338..3855ec94a8f397 100644 --- a/be/src/vec/sink/writer/vtablet_writer_v2.cpp +++ b/be/src/vec/sink/writer/vtablet_writer_v2.cpp @@ -554,9 +554,9 @@ Status VTabletWriterV2::close(Status exec_status) { } } } - if (!tablet_commit_infos.empty() && !_missing_tablets.empty()) { - std::stringstream ss; - ss << "pre-commit check failed, missing " << _missing_tablets.size() << " tablets:"; + if (!_missing_tablets.empty()) { + std::stringstream ss("pre-commit check failed, "); + ss << "missing " << _missing_tablets.size() << " tablets:"; int print_limit = 3; for (auto tablet_id : _missing_tablets | std::ranges::views::take(print_limit)) { ss << " (tablet_id=" << tablet_id;