Return more informative error message when trying to create subscription on...
Return more informative error message when trying to create subscription on non-persistent throug Rest API or pulsar-admin CLI. (#7831) Fixes #7397 Motivation When use pulsar-admin to create a subscription on a non-persistent topic, get the server error This change return more informative error message when trying to create subscript ion on non-persistent through Rest API or pulsar-admin CLI. Modifications Currently when creating subscription is called with non-persistent topic service will try to create the subscription which will fail with casting exception when trying to cast NonPersistentSubscription to PersistentSubscription and client will see internal error. Add check if create subscription command is called for a non-persistent topic before actually Verifying this change This change added tests and can be verified as follows: Added unit test Verified with local standalone
Showing
想要评论请 注册 或 登录