This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new becde7e7cc1 branch-4.0: [fix](test) Stabilize
test_sql_block_rule_status BLOCKS assertion #64668 (#64730)
becde7e7cc1 is described below
commit becde7e7cc124de1fad27a00095146cbc5e86c78
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jul 30 15:12:40 2026 +0800
branch-4.0: [fix](test) Stabilize test_sql_block_rule_status BLOCKS
assertion #64668 (#64730)
Cherry-picked from #64668
Co-authored-by: Calvin Kirs <[email protected]>
---
.../suites/query_p0/schema_table/test_sql_block_rule_status.groovy | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/regression-test/suites/query_p0/schema_table/test_sql_block_rule_status.groovy
b/regression-test/suites/query_p0/schema_table/test_sql_block_rule_status.groovy
index 69ba279bc96..f37f0b1e848 100644
---
a/regression-test/suites/query_p0/schema_table/test_sql_block_rule_status.groovy
+++
b/regression-test/suites/query_p0/schema_table/test_sql_block_rule_status.groovy
@@ -69,7 +69,12 @@ suite("test_sql_block_rule_status") {
assertEquals(1, statusRows.size())
assertEquals(blockRuleName, statusRows[0][0].toString())
assertEquals("false", statusRows[0][8].toString())
- assertEquals("1", statusRows[0][9].toString())
+ // BLOCKS is a process-wide, monotonically increasing hit counter on a
global block rule.
+ // It is not isolated to this test's single query, so any extra matching
evaluation under
+ // concurrent CI load (e.g. a transient statement re-delivery) can bump it
past 1. Assert the
+ // meaningful invariant "the rule fired at least once" instead of an
exact, racy count.
+ assertTrue(Integer.parseInt(statusRows[0][9].toString()) >= 1,
+ "BLOCKS should be >= 1 but was ${statusRows[0][9]}")
sql """
drop SQL_BLOCK_RULE if exists ${blockRuleName};
"""
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]