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

   ## Problem
   
   When a consensus subscription queue was deactivated during leader changes or 
queue removal, it discarded prefetched and in-flight events. The next poll used 
client-reported progress, which advances when an event is observed and can be 
ahead of its ACK. Those events were then skipped without a WAL-gap signal.
   
   ## Fix
   
   - Initialize replay from the subscription commit manager's committed 
progress after a queue reset, rather than the poll progress hint.
   - Add a regression test proving that an unacknowledged event is replayed 
after deactivation and reactivation.
   
   This preserves at-least-once delivery across queue lifecycle resets while 
retaining the existing ACK-based commit frontier.
   
   ## Validation
   
   - `mvn clean test -T 2 
-Dtest=ConsensusPrefetchingQueueDeliveryTest,ConsensusPrefetchingQueueTest 
-Dsurefire.failIfNoSpecifiedTests=false -pl iotdb-core/datanode -am -P 
with-integration-tests`
   - 67 tests passed, 0 failures, 0 errors.


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