Repository navigation
Closed
Description
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
- Job:
Matrixone Standlone CI / Multi-CN e2e BVT Test on Linux/x64(LAUNCH, PROXY) - Failed run: https://github.com/matrixorigin/matrixone/actions/runs/27604730187/job/81613911996?pr=25008
- PR: add protected database #25008 (unrelated changes —
add protected databasefeature) - Date: 2026-06-16
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
- Increase the wait timeout from 15s to a larger value (e.g., 30s or 60s)
- Or use a polling loop with shorter intervals instead of a single
sleep(15) - Or add
@retryannotation in mo-tester to auto-retry on this specific assertion
Environment
- Mode: Multi-CN with PROXY (LAUNCH)
- CI Runner: GitHub Actions Linux x64
Metadata
Metadata
Assignees
Labels
No labels
Activity
matrix-meow commentedon Jun 17, 2026
fixed