From 00e3b05f557ab03ea20721586b0e4754ae6fa28a Mon Sep 17 00:00:00 2001 From: Caideyipi <87789683+Caideyipi@users.noreply.github.com> Date: Wed, 14 Oct 2026 12:14:39 +0800 Subject: [PATCH] Fix flaky space quota result polling in cluster tests (#18850) (cherry picked from commit 0a79a4925e9d9e1e1327c9ee3822c94a19c02905) --- .../org/apache/iotdb/db/it/quotas/IoTDBSpaceQuotaIT.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/quotas/IoTDBSpaceQuotaIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/quotas/IoTDBSpaceQuotaIT.java index 8930985717f5d..cf953aa9e7c4c 100644 --- a/integration-test/src/test/java/org/apache/iotdb/db/it/quotas/IoTDBSpaceQuotaIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/db/it/quotas/IoTDBSpaceQuotaIT.java @@ -25,6 +25,7 @@ import org.apache.iotdb.it.framework.IoTDBTestRunner; import org.apache.iotdb.itbase.category.ClusterIT; import org.apache.iotdb.itbase.category.LocalStandaloneIT; +import org.apache.iotdb.itbase.exception.InconsistentDataException; import org.awaitility.Awaitility; import org.junit.After; @@ -515,6 +516,10 @@ private void validateResultSetEventually(Statement statement, String sql, String .pollDelay(0, TimeUnit.MILLISECONDS) .pollInterval(1, TimeUnit.SECONDS) .atMost(30, TimeUnit.SECONDS) + // Cluster queries compare results from all DataNodes. Space quota usage is refreshed + // asynchronously by heartbeats, so the comparison can observe different snapshots while + // the usage converges. Awaitility does not retry runtime exceptions by default. + .ignoreExceptionsMatching(e -> e instanceof InconsistentDataException) .untilAsserted( () -> { try {