This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ec0af702157 [fix](regression) fix global vars in cases (#51636)
ec0af702157 is described below

commit ec0af702157a85fb412b9cc4f7498e36006765f7
Author: shuke <[email protected]>
AuthorDate: Fri Jun 13 10:39:35 2025 +0800

    [fix](regression) fix global vars in cases (#51636)
    
    ### What problem does this PR solve?
    
    Issue Number: close #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test <!-- At least one of them must be included. -->
        - [x] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [ ] No need to test or manual test. Explain why:
    - [ ] This is a refactor/code format and no logic has been changed.
            - [ ] Previous test can cover this change.
            - [ ] No code files have been changed.
            - [ ] Other reason <!-- Add your reason?  -->
    
    - Behavior changed:
        - [x] No.
        - [ ] Yes. <!-- Explain the behavior change -->
    
    - Does this need documentation?
        - [x] No.
    - [ ] Yes. <!-- Add document PR link here. eg:
    https://github.com/apache/doris-website/pull/1214 -->
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label <!-- Add branch pick label that this PR
    should merge into -->
---
 .../suites/alter_p2/test_alter_table_property.groovy           |  2 +-
 .../suites/load_p0/spark_load/test_spark_load.groovy           | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/regression-test/suites/alter_p2/test_alter_table_property.groovy 
b/regression-test/suites/alter_p2/test_alter_table_property.groovy
index 5ad017f276c..1862d5bb3b7 100644
--- a/regression-test/suites/alter_p2/test_alter_table_property.groovy
+++ b/regression-test/suites/alter_p2/test_alter_table_property.groovy
@@ -71,7 +71,7 @@ suite ("test_alter_table_property") {
     assertEquals(2, queryReplicaCount("p3"))
 
     sql """ ALTER TABLE ${tableName} MODIFY PARTITION p1 SET ( 
"replication_allocation" = "tag.location.default: 2" ) """
-    for (i = 0; i < 300; i++) {
+    for (int i = 0; i < 300; i++) {
         if (queryReplicaCount("p1") != 2) {
             Thread.sleep(3000)
         }
diff --git a/regression-test/suites/load_p0/spark_load/test_spark_load.groovy 
b/regression-test/suites/load_p0/spark_load/test_spark_load.groovy
index c798ad1fcf7..59df3195b27 100644
--- a/regression-test/suites/load_p0/spark_load/test_spark_load.groovy
+++ b/regression-test/suites/load_p0/spark_load/test_spark_load.groovy
@@ -23,9 +23,9 @@ suite("test_spark_load", "p0") {
     def yarnAddress = "master:8032"
     def hdfsAddress = "hdfs://master:9000"
     def hdfsWorkingDir = "hdfs://master:9000/doris"
-    brokerName =getBrokerName()
-    hdfsUser = getHdfsUser()
-    hdfsPasswd = getHdfsPasswd()
+    def brokerName =getBrokerName()
+    def hdfsUser = getHdfsUser()
+    def hdfsPasswd = getHdfsPasswd()
     
     def create_test_table = {testTablex ->
         def result1 = sql """
@@ -110,9 +110,9 @@ suite("test_spark_load", "p0") {
     }
     
     def check_load_result = {checklabel, testTablex, testTablex2 ->
-        max_try_milli_secs = 10000
+        def max_try_milli_secs = 10000
         while(max_try_milli_secs) {
-            result = sql "show load where label = '${checklabel}'"
+            def result = sql "show load where label = '${checklabel}'"
             if(result[0][2] == "FINISHED") {
                 sql "sync"
                 qt_select "select * from ${testTablex} order by c_int"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to