mlyahmed commented on issue #9585: URL: https://github.com/apache/pulsar/issues/9585#issuecomment-779389165
It seems that the way subscription to a topic is managed differently than to a pattern. When the consumer points to a topic and it is partitioned then the subscription is managed by **MultiTopicsConsumerImpl** which handles only one case where there is new partition(s) and subscribes to the new one(s) only. So if you delete the topic and recreate it with the same partitions the consumer will do nothing. And if the number of the new partitions is less it logs an error and bypasses. On the opposite, when the consumer points to a pattern, the subscription is managed by **PatternMultiTopicsConsumerImpl** which handles both cases of add and remove. By the way, it does not consider partitions in its treatment. I think we need a senior contributor here to tell us what is the expected behavior in this case. ---------------------------------------------------------------- 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: [email protected]
