Caideyipi opened a new pull request, #19116:
URL: https://github.com/apache/iotdb/pull/19116

   ## Summary
   
   Subscription polling and batch emission copy `regionIdToBatch.keySet()` 
while the prefetch path may structurally update the same map under per-region 
locks. A concurrent update can make the snapshot fail and abort polling.
   
   Use `ConcurrentHashMap` for region batch tracking while retaining the 
existing per-region locks for batch operations. Add a regression test that runs 
poll and emit snapshots alongside prefetch-style inserts and removals.
   
   ## Validation
   
   - `mvn spotless:apply -P with-integration-tests -pl iotdb-core/datanode`
   - `mvn -o -pl iotdb-core/datanode -am clean test 
-Dtest=SubscriptionPipeEventBatchesConcurrencyTest 
-Dsurefire.failIfNoSpecifiedTests=false` (28 reactor modules; 1 test passed)
   


-- 
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]

Reply via email to