codelipenghui commented on issue #9585: URL: https://github.com/apache/pulsar/issues/9585#issuecomment-785668280
Hi @alexku7 If the topic auto-creation is disabled and we delete the existing topic, the clients should be rejected when they try to connect to a not exist topic. If the consumer is a single topic consumer and the topic been removed, the consumer should be close with an exception(Topic does not found), If the consumer is multiple topic consumer, only part of the topics been removed, the correct behavior is one part of the internal consumer been closed with an exception, others should continue works(such as you subscribe to topic-a topic-b topic-c), If topic-a removed, the consume should continue to consume messages from topic-b topic-c. But if topic-b topic-b been removed, the consumer should be closed. > I think the only one thing is needed - some retry or rediscovery logic similar to the regex consumer with a pattern It's different with the regex consumer here. If we allow retrying for a not existing topic, the consumer will try to reach the metadata service through the broker to check if the topic exists. This will introduce more work load on the metadata service. ---------------------------------------------------------------- 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: us...@infra.apache.org