Caideyipi opened a new pull request, #18972: URL: https://github.com/apache/iotdb/pull/18972
## Description Cold PowerMock/Mockito initialization can exhaust the seek tests' 10-second method timeout. First-use loading of plan-node deserializers and the Pipe runtime on the prefetch worker also consumes the 5-second replay polling deadline. Initialize the shared mocks and runtime dependencies in `@Before`, and use a lightweight retained-entry WAL iterator instead of generating an iterator mock on the worker. The real serial prefetch executor, both existing deadlines, and all replay/cursor/gap assertions are preserved. This is reproducible with upstream code when subscription tests are explicitly selected; the default upstream Surefire configuration excludes `**/subscription/**`. ## Validation - `mvn -nsu spotless:apply -pl iotdb-core/datanode` - `mvn -nsu checkstyle:check -pl iotdb-core/datanode` - Four seek tests passed in 10 fresh JVMs and three additional fresh JVMs with `-Xint`. - Reactor regression sweep selecting `ConsensusPrefetchingQueue*Test,ProgressWALIteratorTest`: 134 tests, 132 passed, one skipped, one unrelated baseline failure. `ConsensusPrefetchingQueueTest.testAckRetentionRefreshDoesNotBlockEventRecycling`, added by #18969, fails at its initial `assertNotNull(event)` on line 2643 and also fails when run alone without loading the modified seek test class. - [x] Self-reviewed. - [x] Updated unit-test fixtures and added comments explaining their initialization requirements. -- 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]
