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

   ## Problem
   
   When unsubscribing from an `initial` or `snapshot` topic configured to 
retain progress, no subscription Pipe should be removed. The unsubscribe 
procedure still sent an empty Pipe metadata batch to DataNodes. DataNodes 
interpreted the empty batch as a full snapshot and removed all local Pipes, so 
a later resubscription restarted from the minimum progress index and replayed 
historical rows.
   
   ## Fix
   
   - Skip Pipe metadata synchronization when the unsubscribe produces no Pipe 
drops.
   - Continue synchronizing consumer-group metadata.
   - Add a regression test covering both empty metadata broadcast paths and 
consumer-group synchronization.
   
   ## Validation
   
   - `mvn spotless:apply -P with-integration-tests -pl iotdb-core/confignode`
   - `mvn test -pl iotdb-core/confignode -Dtest=DropSubscriptionProcedureTest 
-DfailIfNoTests=false` (5 tests passed)
   - The subscription integration test cannot run on the Apache baseline 
because subscription is disabled by default; it passed in an environment with 
subscription enabled.


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