From 45eaa3862d6430d96a28a8eddce3e96fbce8b9c4 Mon Sep 17 00:00:00 2001 From: shuke Date: Tue, 7 Jan 2025 14:38:25 +0800 Subject: [PATCH] [regression-test](fix) fix test_audit_log_behavior.groovy bug (#46100) (#46524) Issue Number: close #xxx Related PR: #xxx Problem Summary: In this case, select stmt from __internal_schema.audit_log where stmt like '%3F6B9A_1%' order by time asc limit 1 will also be inserted into audit log table, and be selected, which will cause assert fail in test case, which want a insert stmt. --- regression-test/suites/audit/test_audit_log_behavior.groovy | 4 ++-- 1 file changed, 2 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 0636c2ad7c..ec01870750 100644 --- a/regression-test/suites/audit/test_audit_log_behavior.groovy +++ b/regression-test/suites/audit/test_audit_log_behavior.groovy @@ -92,8 +92,8 @@ suite("test_audit_log_behavior") { // check result for (int i = 0; i < cnt; i++) { def tuple2 = sqls.get(i) - def retry = 90 - def res = sql "select stmt from __internal_schema.audit_log where stmt like '%3F6B9A_${i}%' order by time asc limit 1" + 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" while (res.isEmpty()) { if (retry-- < 0) { logger.warn("It has retried a few but still failed, you need to check it")