From 19349988563ae4b2b3e8261e3a6fd0884fab9f39 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Fri, 19 Jul 2024 09:45:44 +0800 Subject: [PATCH] [fix](test) do not throw exception when a stream load consums more time than expected --- .../doris/regression/action/StreamLoadAction.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 606b9bc4ac8922..c72770a44108b0 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 @@ -366,10 +366,10 @@ class StreamLoadAction implements SuiteAction { if (time > 0) { long elapsed = endTime - startTime - try{ - Assert.assertTrue("Expect elapsed <= ${time}, but meet ${elapsed}", elapsed <= time) - } catch (Throwable t) { - throw new IllegalStateException("Expect elapsed <= ${time}, but meet ${elapsed}") + if (elapsed > time) { + logger.info("Stream load consums time than expected, elapsed ${elapsed} ms, expect ${time} ms") + } else { + logger.info("Stream load consums time elapsed ${elapsed} ms, expect ${time} ms") } } }