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:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user