VGalaxies opened a new pull request, #183:
URL: https://github.com/apache/iotdb-client-go/pull/183

   ## Summary
   
   Port the client-side retained-snapshot completion barrier from 
apache/iotdb#19364 to the Go subscription client.
   
   For retained snapshot topics (`mode=snapshot`, 
`retain.progress.after.unsubscribe=true`), the Go pull consumer now:
   
   - tracks termination per DataNode from both heartbeat and poll responses;
   - auto-unsubscribes only after every expected DataNode has reported 
termination;
   - revokes a DataNode's completion observation when a later heartbeat no 
longer reports the topic;
   - clears completion observations when the advertised DataNode topology 
changes.
   
   Non-retained topics keep the existing immediate termination behavior. A 
pending or failed auto-unsubscribe keeps `AllConsumed()` false, as before.
   
   ## Validation
   
   - `go test ./subscription/...`
   - `go test -race ./subscription/consumer`
   - `go vet ./subscription/...`
   
   E2E tests were not run locally because they require a live IoTDB cluster; CI 
will cover them.
   
   Refs apache/iotdb#19364.


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