carlvinhust2012 commented on code in PR #11082:
URL: https://github.com/apache/doris/pull/11082#discussion_r927321325


##########
regression-test/suites/load/broker_load/test_array_load.groovy:
##########
@@ -116,13 +137,30 @@ suite("test_array_load", "load") {
         assertTrue(result1[0][0] == 0, "Query OK, 0 rows affected")
     }
     
+    def check_load_result = {checklabel, testTablex ->
+        max_try_micro_secs = 10000
+        while(max_try_micro_secs--) {
+            result = sql "show load where label = '${checklabel}'"
+            if(result[0][2] == "FINISHED") {
+                qt_select "select * from ${testTablex} order by k1"
+                break
+            } else {
+                sleep(1000) // wait 1 second every time
+                max_try_micro_secs = max_try_micro_secs - 1000
+                if(max_try_micro_secs < 0) {

Review Comment:
   if no need "max_try_micro_secs--", I think it should be 'max_try_micro_secs 
<= 0'.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to