eolivelli commented on pull request #14367:
URL: https://github.com/apache/pulsar/pull/14367#issuecomment-1056496329


   Let's see this problem from another point of view:
   
   Readers are mapped to Non-Durable subscriptions that are tied to the Reader, 
so if you close gracefully the Reader the subscription should be automatically 
deleted.
   **I wonder if there is really a need to do this subscriptions clean up at 
all.**
   I mean, is a Pulsar application that uses are Reader, you usually don't have 
to care about possible remaining dangling subscriptions on the broker, they are 
automatically cleaned up.
   
   So if we ensure that we close the Reader and the Producer and we do not 
perform the "clean up", there won't be concurrency issues and everything will 
work cleanly as expected.
   
   After all this "heartbeat" is like a dummy application that writes a message 
and uses a reader.


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