This is an automated email from the ASF dual-hosted git repository.

jt2594838 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a79a4925e9 Fix flaky space quota result polling in cluster tests 
(#18850)
0a79a4925e9 is described below

commit 0a79a4925e9d9e1e1327c9ee3822c94a19c02905
Author: Caideyipi <[email protected]>
AuthorDate: Wed Oct 14 12:14:39 2026 +0800

    Fix flaky space quota result polling in cluster tests (#18850)
---
 .../test/java/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 8930985717f..cf953aa9e7c 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.env.EnvFactory;
 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 @@ public class IoTDBSpaceQuotaIT {
         .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 {

Reply via email to