Caideyipi opened a new pull request, #19194: URL: https://github.com/apache/iotdb/pull/19194
## Description Replicated WAL entries can arrive after a subscription prefetch worker becomes idle without advancing the local WAL search index or entering the realtime queue. Repeated polls can then stay empty until another event wakes the worker. Wake a bound idle prefetch worker after an empty poll, with a per-queue 100 ms limit enforced by a monotonic-clock CAS. Preserve the initialization, seek, close, and executor-binding guards. Add regression tests for late remote-entry delivery and acknowledgement with zero local WAL gap, and for suppression immediately before the wakeup interval and grant at its boundary. ## Validation At commit `3a343faaff65424068f357819ecfe97c8a41ca9d`: - Clean reactor run of `ConsensusPrefetchingQueueSeekTest`: 11 tests passed. - Clean local reactor run of both newly added tests: 2 tests passed; all 28 modules succeeded, with 482/482 Maven goals executed and no build-cache restores. - Spotless and `git diff --check` passed. The full test suite and distributed integration tests have not been run on this commit. <hr> This PR has: - [x] been self-reviewed, including concurrent read and write paths. - [x] added comments explaining why the idle worker needs another wakeup. - [x] added unit tests for late remote WAL delivery and the wakeup interval boundary. <hr> ##### Key changed/added classes - `ConsensusPrefetchingQueue` - `ConsensusPrefetchingQueueSeekTest` -- 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]
