Caideyipi opened a new pull request, #18845: URL: https://github.com/apache/iotdb/pull/18845
## Description Subscription ACKs committed writer progress and refreshed WAL retention inside an `inFlightEvents.compute` callback. CPU profiles and thread dumps showed WAL metadata scanning under the ConcurrentHashMap node lock blocking subscription prefetch threads. Move the commit and retention refresh outside that callback, then remove the exact event after a successful commit. A failed commit leaves the event available for retry. Pre-size the per-entry writer progress lists when deserializing WAL metadata to reduce repeated `ArrayList` growth. ## Validation - `mvn spotless:apply -pl iotdb-core/datanode -DskipTests` - `mvn -pl iotdb-core/datanode -DskipTests compile` - `mvn -pl iotdb-core/datanode -Dtest=ConsensusPrefetchingQueueTest test` — 46 tests passed. Cluster performance measurements have not been rerun after this change. ## Key changed classes - `ConsensusPrefetchingQueue` - `WALMetaData` -- 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]
