You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/08/16 22:24:57 UTC

[GitHub] [pulsar] MarvinCai commented on issue #7397: Failed to create subscription on non-persistent topic.

MarvinCai commented on issue #7397:
URL: https://github.com/apache/pulsar/issues/7397#issuecomment-674585505


   I can reproduce the issue by starting standalone and create tenant/namespace then try to create subscription on non-persistent topic with command:
   `./pulsar-admin topics create-subscription  -s subscription non-persistent://tenant/namespace/topic`
   and I see HTTP 500 Internal Server Error
   I think the reason is the create-subscription is intended for persistent topic and it'll try to cast the created topic to PersistentTopic: https://github.com/apache/pulsar/blame/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L1843 so it'll fail if we provide a non persistent topic name.
   Do we want to add support for non-persistent topic here?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org