Reputation: 13
I am trying to run Apache pulsar client with multiple consumers on a subscription in Shared mode. This multiple consumers are running in multiple threads. But on trying to unsubscribe the consumer getting error message as "Unconnected or shared consumer attempting to unsubscribe".
cant we unsubscribe shared subscription. How to do that ?
Upvotes: 1
Views: 915
Reputation: 785
In order to unsubscribe, you generally need to first disconnect all the other consumers.
If there are other consumers connected, they will just reconnect and re-create the subscription.
Upvotes: 1