diff --git a/regression-test/pipeline/p0/conf/fe.conf b/regression-test/pipeline/p0/conf/fe.conf index 509446f9fcb0e3..38877abad93d6d 100644 --- a/regression-test/pipeline/p0/conf/fe.conf +++ b/regression-test/pipeline/p0/conf/fe.conf @@ -83,3 +83,5 @@ enable_advance_next_id = true # enable deadlock detection enable_deadlock_detection = true max_lock_hold_threshold_seconds = 1 + +force_olap_table_replication_allocation=tag.location.default:1 diff --git a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy index a4b3eb661768dd..1e10e26a925509 100644 --- a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy +++ b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy @@ -15,6 +15,10 @@ // specific language governing permissions and limitations // under the License. suite("test_dynamic_partition") { + def config_row = sql """ ADMIN SHOW FRONTEND CONFIG LIKE 'force_olap_table_replication_allocation'; """ + String old_conf_value = config_row[0][1] + sql """ ADMIN SET FRONTEND CONFIG ("force_olap_table_replication_allocation" = ""); """ + // todo: test dynamic partition sql "drop table if exists dy_par" sql """ @@ -158,4 +162,7 @@ suite("test_dynamic_partition") { } } sql "drop table if exists dy_par_bad" + + // restore force_olap_table_replication_allocation to old_value + sql """ ADMIN SET FRONTEND CONFIG ("force_olap_table_replication_allocation" = "${old_conf_value}"); """ }