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 ce98073a1b4 branch-2.1: [opt](regression-test) Adjust the stream load 
timeout check of the regression framework #47037 (#47049)
ce98073a1b4 is described below

commit ce98073a1b4a5abcbd59cbc1df593490656ccb90
Author: Xin Liao <liao...@selectdb.com>
AuthorDate: Thu Jan 16 17:02:16 2025 +0800

    branch-2.1: [opt](regression-test) Adjust the stream load timeout check of 
the regression framework #47037 (#47049)
    
    cherry pick from #47037
---
 .../org/apache/doris/regression/action/StreamLoadAction.groovy    | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy
 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy
index 56c80e88a40..116c507c95d 100644
--- 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy
+++ 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy
@@ -343,10 +343,12 @@ class StreamLoadAction implements SuiteAction {
 
             if (time > 0) {
                 long elapsed = endTime - startTime
-                try{
-                    Assert.assertTrue("Expect elapsed <= ${time}, but meet 
${elapsed}", elapsed <= time)
+                try {
+                    // stream load may cost more time than expected in 
regression test, because of case run in parallel.
+                    // So we allow stream load cost more time, use 3 * time as 
threshold.
+                    Assert.assertTrue("Stream load Expect elapsed <= 3 * 
${time}, but meet ${elapsed}", elapsed <= 3 * time)
                 } catch (Throwable t) {
-                    throw new IllegalStateException("Expect elapsed <= 
${time}, but meet ${elapsed}")
+                    throw new IllegalStateException("Stream load Expect 
elapsed <= 3 * ${time}, but meet ${elapsed}")
                 }
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to