dragonls opened a new issue #13640:
URL: https://github.com/apache/pulsar/issues/13640


   **Describe the bug**
   I am trying to use non persistent topic on pulsar 2.7.2 non persistent 
topic. Pulsar cluster disallow auto subscription creation, 
`allowAutoSubscriptionCreation=false`.
   
   I tried to create subscription using pulsar admin api but receiving error 
`Create subscription on non-persistent topic can only be done through client`
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Delopy a Pulsar cluster with `allowAutoSubscriptionCreation=false`
   2. Create a non persistent topic `non-persistent://test/test/topic1`
   3. Create a consumer to subscribe the topic
   4. See error
   
   **Expected behavior**
   The consumer can subscribe the non persistent topic correctly.
   
   **Additional context**
   The pulsar admin disallow creating subscription on non persistent topic:
   
https://github.com/apache/pulsar/blob/016fb87039f44bdf3f8829797bb08a71e61483ab/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java#L1347-L1350
   
   The broker reject the subscription:
   
https://github.com/apache/pulsar/blob/016fb87039f44bdf3f8829797bb08a71e61483ab/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L1013-L1022
   
   
   


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