diff --git a/be/src/cloud/cloud_cumulative_compaction.cpp b/be/src/cloud/cloud_cumulative_compaction.cpp index eda7f6c1190abd..52e646409f8120 100644 --- a/be/src/cloud/cloud_cumulative_compaction.cpp +++ b/be/src/cloud/cloud_cumulative_compaction.cpp @@ -92,7 +92,7 @@ Status CloudCumulativeCompaction::prepare_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. update_cumulative_point(); - if (config::enable_sleep_between_delete_cumu_compaction) { + if (!config::enable_sleep_between_delete_cumu_compaction) { st = Status::Error( "_last_delete_version.first not equal to -1"); } diff --git a/regression-test/data/compaction/test_cumu_compaction_with_delete.out b/regression-test/data/compaction/test_cumu_compaction_with_delete.out index f958424e65c626..642559699ac60c 100644 --- a/regression-test/data/compaction/test_cumu_compaction_with_delete.out +++ b/regression-test/data/compaction/test_cumu_compaction_with_delete.out @@ -1,3 +1,5 @@ -- This file is automatically generated. You should know what you did if you want to edit this --- !select -- +-- !select1 -- + +-- !select2 -- diff --git a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy index dbf2bb32194477..5466b395efe453 100644 --- a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy +++ b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy @@ -60,9 +60,9 @@ suite("test_cumu_compaction_with_delete") { } time_diff = System.currentTimeMillis() - now logger.info("time_diff:" + time_diff) - assertTrue(time_diff<250*1000) + assertTrue(time_diff<200*1000) - qt_select """select * from ${tableName} order by user_id, value""" + qt_select1 """select * from ${tableName} order by user_id, value""" } catch (Exception e){ logger.info(e.getMessage()) assertFalse(true) @@ -111,7 +111,7 @@ suite("test_cumu_compaction_with_delete") { logger.info("time_diff:" + time_diff) assertTrue(time_diff>=250*1000) - qt_select """select * from ${tableName} order by user_id, value""" + qt_select2 """select * from ${tableName} order by user_id, value""" } catch (Exception e){ logger.info(e.getMessage()) assertFalse(true)