jt2594838 commented on code in PR #19242:
URL: https://github.com/apache/iotdb/pull/19242#discussion_r4547379928


##########
integration-test/src/test/java/org/apache/iotdb/db/it/cq/IoTDBCQExecIT.java:
##########
@@ -514,4 +509,22 @@ public void testCQExecution5() {
       fail(e.getMessage());
     }
   }
+
+  private static void awaitCQResultCount(Statement statement, String query, 
int expectedRowCount)

Review Comment:
   Poll immediately and then every 100 ms for the complete CQ output. CQ writes 
can fall between the individual DataNode query snapshots, so count each node's 
rows independently and wait until every count is sufficient within the 
unchanged 30-second deadline. SQL/transport errors still propagate; no 
exception is ignored. The caller still uses the cluster wrapper to compare 
every final timestamp and value. This addresses the 1C3D CI snapshot mismatch 
without adding a fixed sleep.
   
   <!-- it-runtime-rationale:c56099e483731cfb:189 -->



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to