Skip to content

[Bug] show7.sql: statement_info not populated within 15s wait in Multi-CN PROXY BVT #25018

Closed

Description

@aptend

Description

In PR CI, the dml/show/show7.sql BVT test intermittently fails because system.statement_info is not populated within the 15-second wait window under Multi-CN PROXY mode.

CI Run

Failure Details

  • Test file: test/distributed/cases/dml/show/show7.sql (total: 9, success: 8, failed: 1, cost: 15.74s)
  • Failed statement (row 10):
    select count(*) > 0 as has_data from system.statement_info;
  • Expected: 1 (statement_info has data)
  • Actual: 0 (statement_info is empty)

Test Logic

-- Create a new account
drop account if exists show_table_status_acc_10163;
create account show_table_status_acc_10163 admin_name = 'admin' identified by '111';

-- @session:id=1&user=show_table_status_acc_10163:admin&password=111
-- Execute queries to generate statement records
select 1;
select 2;
select 3;

-- Wait up to 15 seconds for statement_info to be populated
select case when count(*) > 0 then 0 else sleep(15) end as wait_for_statement_info_ready from system.statement_info;

-- Check if statement_info has data (expects 1)
select count(*) > 0 as has_data from system.statement_info;
-- ... show table status ...
-- @session

drop account show_table_status_acc_10163;

The test total cost is 15.74s, confirming the full 15-second sleep was consumed — meaning statement_info remained empty throughout the entire wait.

Root Cause

system.statement_info is populated asynchronously by the audit/logging pipeline. In Multi-CN PROXY mode, statement records must be flushed through cross-CN asynchronous channels, which can exceed the 15-second wait window under CI resource pressure.

Impact

  • This is a flaky test — not related to any specific PR's code changes
  • Causes false CI failures and unnecessary re-runs
  • The test already includes a 15-second retry mechanism, but it's insufficient under heavy CI load

Suggested Fix

  1. Increase the wait timeout from 15s to a larger value (e.g., 30s or 60s)
  2. Or use a polling loop with shorter intervals instead of a single sleep(15)
  3. Or add @retry annotation in mo-tester to auto-retry on this specific assertion

Environment

  • Mode: Multi-CN with PROXY (LAUNCH)
  • CI Runner: GitHub Actions Linux x64

Activity

  1. self-assigned this
    on Jun 17, 2026
  2. matrix-meow commented on Jun 17, 2026

    @matrix-meow
    Contributor

    fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions