From f08481bd076093d6020ac51f9ce5f192ff874e55 Mon Sep 17 00:00:00 2001 From: deardeng Date: Tue, 22 Sep 2026 15:25:50 +0800 Subject: [PATCH] [fix](case) Improve `test_tablet_size_semantics` robustness (#68337) --- .../cloud_p0/tablets/test_tablet_size_semantics.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/regression-test/suites/cloud_p0/tablets/test_tablet_size_semantics.groovy b/regression-test/suites/cloud_p0/tablets/test_tablet_size_semantics.groovy index 673800f97f631d..a38a0c601356a5 100644 --- a/regression-test/suites/cloud_p0/tablets/test_tablet_size_semantics.groovy +++ b/regression-test/suites/cloud_p0/tablets/test_tablet_size_semantics.groovy @@ -61,6 +61,12 @@ suite("test_tablet_size_semantics") { """ sql "sync" + // Querying the tablet's actual data forces the BE to sync_rowsets() for it directly, + // instead of relying on it being picked up as a compaction candidate (which can be + // starved for a long time on a busy cluster with many other tablets competing for + // compaction slots) or the ~30min background staleness sweep. + sql "select * from ${tableName}" + def showTabletRows = sql_return_maparray("show tablets from ${tableName}") assertTrue(showTabletRows.size() == 1) def showTabletRow = showTabletRows[0]