wangjialing218 opened a new issue, #16839:
URL: https://github.com/apache/pulsar/issues/16839

   **Describe the bug**
   As  
[PIP-13](https://github.com/apache/pulsar/wiki/PIP-13:-Subscribe-to-topics-represented-by-regular-expressions),
 when we subscribe to topics represented by regular expressions, there is an 
auto-discover timer to check the new added or removed topics and do subscribe 
or unsubscribe.
   When a topic remove happen, any topics added later will not be subscribed. 
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1.  Start a consumer and subescibe with regular expressions like 
`persistent://public/default/.*`
   2.  Create some topics.
   3.  Force delete one topic.
   4.  Create some new topics.
   The topics created in step4 will not be subscribed. 
   
   **Additional context**
   I found the auto-discover thread will block when topic remove happen and 
then never run again.
   I will give a fix later
   


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