<@U078Y59KC3B> is it possible to switch a subscrip...
# ask-ai
s
@RunLLM is it possible to switch a subscription of type
Key_Shared
to
Shared
and vice versa?
r
No, you cannot switch a Pulsar subscription between
Key_Shared
and
Shared
(or any other type) while consumers are connected. A subscription is bound to a single type by its name, and to change the type, you must first stop all consumers for that subscription, then reconnect with the new type. Attempting to connect a consumer with a different type to an active subscription will result in an error stating "Subscription is of different type" according to the official documentation and test cases. Would you like more detail on the process or error handling? Sources: - PersistentTopicE2ETest.java - the official documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.