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

Caideyipi pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new 5b8fcf48f3a Fix flaky space quota result polling in cluster tests 
(#18850) (#18867)
5b8fcf48f3a is described below

commit 5b8fcf48f3aa49ed677a9cf0fcf52a5df634c41d
Author: Caideyipi <[email protected]>
AuthorDate: Wed Nov 4 17:39:20 2026 +0800

    Fix flaky space quota result polling in cluster tests (#18850) (#18867)
    
    (cherry picked from commit 0a79a4925e9d9e1e1327c9ee3822c94a19c02905)
---
 .../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