Skip to content

Commit

Permalink
Revert "[fix](move-memtable) only check missing tablets when commit i…
Browse files Browse the repository at this point in the history
…nfo is not empty (apache#29326)"

This reverts commit 4634c72.
  • Loading branch information
dataroaring committed Dec 31, 2023
1 parent 3c6c652 commit b44f705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/vec/sink/writer/vtablet_writer_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b44f705

Please sign in to comment.