This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 3ade04b440f branch-3.0: [regression-test](fix)
test_audit_log_behavior.groovy case bug #46588 (#46594)
3ade04b440f is described below
commit 3ade04b440fd36bbafd1cb06f14ed68707de59bf
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jan 8 14:20:34 2025 +0800
branch-3.0: [regression-test](fix) test_audit_log_behavior.groovy case bug
#46588 (#46594)
Cherry-picked from #46588
Co-authored-by: shuke <[email protected]>
---
regression-test/suites/audit/test_audit_log_behavior.groovy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/regression-test/suites/audit/test_audit_log_behavior.groovy
b/regression-test/suites/audit/test_audit_log_behavior.groovy
index ec01870750a..6b6e7cf5871 100644
--- a/regression-test/suites/audit/test_audit_log_behavior.groovy
+++ b/regression-test/suites/audit/test_audit_log_behavior.groovy
@@ -93,14 +93,15 @@ suite("test_audit_log_behavior") {
for (int i = 0; i < cnt; i++) {
def tuple2 = sqls.get(i)
def retry = 180
- def res = sql "select stmt from __internal_schema.audit_log where
stmt like 'insert%3F6B9A_${i}%' order by time asc limit 1"
+ def query = "select stmt from __internal_schema.audit_log where
stmt like 'insert%3F6B9A_${i}%' order by time asc limit 1"
+ def res = sql "${query}"
while (res.isEmpty()) {
if (retry-- < 0) {
logger.warn("It has retried a few but still failed, you
need to check it")
return
}
sleep(1000)
- res = sql "select stmt from __internal_schema.audit_log where
stmt like '%3F6B9A_${i}%' order by time asc limit 1"
+ res = sql "${query}"
}
assertEquals(res[0][0].toString(), tuple2[1].toString())
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]