From 6d23020cb88bb5bfef4c8de35cf928331c93bcd8 Mon Sep 17 00:00:00 2001 From: minghong Date: Wed, 30 Oct 2024 21:35:32 +0800 Subject: [PATCH] [fix](regression) do not test "set global sessionVar" on multi-fe cluster (#42922) ## Proposed changes fix unstable rt case: test_statistic_global_variable Issue Number: close #xxx --- .../suites/statistics/test_statistic_global_variable.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/regression-test/suites/statistics/test_statistic_global_variable.groovy b/regression-test/suites/statistics/test_statistic_global_variable.groovy index 63fed3ee27..46f63678f7 100644 --- a/regression-test/suites/statistics/test_statistic_global_variable.groovy +++ b/regression-test/suites/statistics/test_statistic_global_variable.groovy @@ -17,6 +17,12 @@ suite("test_statistic_global_variable", "nonConcurrent") { + def frontends = sql "show frontends" + + if (frontends.size() != 1) { + return + } + def verifyVairable = { variable, value -> sql """set global ${variable}="${value}";""" def result = sql """show variables like "${variable}"; """