Caideyipi opened a new pull request, #18974: URL: https://github.com/apache/iotdb/pull/18974
## Description Initialize the queue with an empty `poll()` before driving prefetch in `testAckRetentionRefreshDoesNotBlockEventRecycling`. Prefetch starts lazily on the first poll. Previously, the test drove a dormant queue and then expected its first poll to return an event, failing at `assertNotNull(event)` before reaching the ACK/recycling checks. Explicit initialization lets both the `ack` and `ackSilent` scenarios exercise the blocked retention scan. ## Validation - Reproduced the original failure at line 2643; the modified test passes through Maven Surefire. - Freshly compiled the upstream queue and modified test against existing reactor outputs, then ran `ConsensusPrefetchingQueue*Test` and `ProgressWALIteratorTest` with JUnitCore: 134 tests, zero failures, one platform-dependent assumption skip. - Ran Spotless on the modified test and `git diff --check`. Validation reused existing reactor dependencies; a full clean build was not run. This PR has: - [x] been self-reviewed. - [x] modified an existing regression test. -- 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]
