[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.
This commit is contained in:
shuke
2025-01-07 14:38:25 +08:00
committed by GitHub
parent c9ab3b9e3a
commit 45eaa3862d

View File

@ -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")