Caideyipi opened a new pull request, #18905: URL: https://github.com/apache/iotdb/pull/18905
## Description TestUtils compares elapsed milliseconds with a timeout expressed in seconds when deciding when to issue its one-time receiver flush. For a 600-second assertion, the threshold is only 300 milliseconds, so the flush happens on the first polling attempt instead of halfway through the wait. In IoTConsensusV2 batch mode, data arriving after that early flush can miss the flush needed for replica synchronization. Use a shared seconds-to-milliseconds calculation in all eight asynchronous assertion flush checks, and add a regression test around the 300-second threshold. Changes are limited to TestUtils and its regression test. ## Validation - `mvn spotless:apply -P with-integration-tests -pl integration-test` passed. - `git diff --check` passed. - Integration tests are pending remote CI. -- 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]
