diff --git a/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_and_recover_partition_show_data.groovy b/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_and_recover_partition_show_data.groovy index b067ad5d9ad25d..9534066b8996f6 100644 --- a/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_and_recover_partition_show_data.groovy +++ b/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_and_recover_partition_show_data.groovy @@ -162,6 +162,8 @@ suite("test_cloud_drop_and_recover_partition_show_data","p2, nonConcurrent") { assertEquals(sizeRecords["apiSize"][0], sizeRecords["apiSize"][1]) assertEquals(sizeRecords["cbsSize"][0], sizeRecords["cbsSize"][1]) + sql """admin set frontend config ("catalog_trash_expire_second" = "30")""" + if (op == 1){ sql """alter table ${tableName} drop partition p1;""" } else if(op == 2){ @@ -192,6 +194,8 @@ suite("test_cloud_drop_and_recover_partition_show_data","p2, nonConcurrent") { } else if(op == 2){ sql """recover partition p19920101000000 from ${tableName};""" } + + sql """admin set frontend config ("catalog_trash_expire_second" = "1")""" // after drop partition,tablets will changed,need get new tablets tablets = get_tablets_from_table(tableName) diff --git a/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_table_show_data.groovy b/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_table_show_data.groovy index e80deb85834713..8eb20b916fb5af 100644 --- a/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_table_show_data.groovy +++ b/regression-test/suites/show_data_p2/test_table_operation/test_cloud_drop_table_show_data.groovy @@ -91,11 +91,13 @@ suite("test_cloud_drop_and_show_data","p2, nonConcurrent") { if(op == 1){ + sql """admin set frontend config ("catalog_trash_expire_second" = "30")""" sql """drop table ${tableName}""" sleep(10 * 1000) sql """recover table ${tableName}""" + sql """admin set frontend config ("catalog_trash_expire_second" = "1")""" // 加一下触发compaction的机制 trigger_compaction(tablets)