Repository navigation
Commit a120099
[fix](test) read sql_block_rule_status from a single FE to deflake BLOCKS count
The BLOCKS column of information_schema.sql_block_rule_status is a SUM
aggregated across all alive FEs (SchemaTable declares it with
SchemaTableAggregateType.SUM and the table is fetch-all-FE), while each FE
keeps its own non-replicated in-memory block counter. A single blocked SELECT
is planned on exactly one FE and increments that FE's counter once, so on a
multi-FE cluster a stray non-zero counter on another FE makes the cross-FE SUM
exceed 1 and fails assertEquals("1", BLOCKS).
Set fetch_all_fe_for_system_table=false before reading the status table so the
scan reads only the local connection FE (the one that ran the blocked query),
making BLOCKS deterministically 1.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 1a51976 commit a120099
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
0 commit comments