jithin
jithin

Reputation: 13

Unsubscribe Apache pulsar shared subscription type

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

Answers (1)

Matteo Merli
Matteo Merli

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

Related Questions