diff --git a/be/src/olap/cumulative_compaction.cpp b/be/src/olap/cumulative_compaction.cpp index ea6b323354cfca..1df669cfe6fc2b 100644 --- a/be/src/olap/cumulative_compaction.cpp +++ b/be/src/olap/cumulative_compaction.cpp @@ -183,6 +183,13 @@ Status CumulativeCompaction::pick_rowsets_to_compact() { // plus 1 to skip the delete version. // NOTICE: after that, the cumulative point may be larger than max version of this tablet, but it doesn't matter. tablet()->set_cumulative_layer_point(_last_delete_version.first + 1); + LOG_INFO( + "cumulative compaction meet delete rowset, increase cumu point without " + "other " + "operation.") + .tag("tablet id:", tablet()->tablet_id()) + .tag("after cumulative compaction, cumu point:", + tablet()->cumulative_layer_point()); return Status::Error( "_last_delete_version.first not equal to -1"); } diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index dc8f665ec00d15..ce55677ea64a25 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -1770,12 +1770,6 @@ Status Tablet::prepare_compaction_and_calculate_permits( // return OK if OLAP_ERR_CUMULATIVE_NO_SUITABLE_VERSION, so that we don't need to // print too much useless logs. // And because we set permits to 0, so even if we return OK here, nothing will be done. - LOG_INFO( - "cumulative compaction meet delete rowset, increase cumu point without other " - "operation.") - .tag("tablet id:", tablet->tablet_id()) - .tag("after cumulative compaction, cumu point:", - tablet->cumulative_layer_point()); return Status::OK(); } } else if (compaction_type == CompactionType::BASE_COMPACTION) {