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 2022/10/21 03:45:42 UTC

[GitHub] [pulsar] wangjialing218 opened a new issue, #18149: [Bug] Partitioned DLQ topic with topic name contains -partition- may cause broker crash

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

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   Version: Pulsar 2.9.3
   
   ### Minimal reproduce step
   
   broker set config as follow:
   ```
   {
       allowAutoTopicCreation: true,
       allowAutoTopicCreationType: "partitioned",
       defaultNumPartitions: 1
   }
   ```
   Client consume a partitioned topic with default DLQ policy.
   When client trigger DLQ topic auto creation, a topic with name like `persistent://public/default/test-partition-0-sub-DLQ` will be created.
   
   Call admin api to get subscriptions or create subsction for this DLQ topic.
   
   
   ### What did you expect to see?
   
   Broker works fine.
   
   ### What did you see instead?
   
   Owner broker of the DLQ topic will hande the get subscriptions request. Broker send another nested get subscriptions request to itself in a very high frequency.
   ![image](https://user-images.githubusercontent.com/65590138/197104645-f25360f2-deae-410a-9f98-57b63b39d994.png)
   Broker become very slow to handle other request, and after about 1 or 2 hours broker disconnected from zookeeper and restart. 
   The DLQ topic will unload to another broker and cause another broker meet same problem.
   
   ### Anything else?
   
   For the partitioned DLQ topic with topic name contains `-partition-`, in `internalGetSubscriptions` https://github.com/apache/pulsar/blob/639393d43e36bd26112866a00b0cff98fae9d0ac/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L1140
   Since partitions = 1, another getSubscriptions request with same topic name will send to the broker itself. https://github.com/apache/pulsar/blob/639393d43e36bd26112866a00b0cff98fae9d0ac/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L1166
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar] Technoboy- closed issue #18149: [Bug] Partitioned DLQ topic with topic name contains -partition- may cause broker crash

Posted by "Technoboy- (via GitHub)" <gi...@apache.org>.
Technoboy- closed issue #18149: [Bug] Partitioned DLQ topic with topic name contains -partition- may cause broker crash
URL: https://github.com/apache/pulsar/issues/18149


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on issue #18149: [Bug] Partitioned DLQ topic with topic name contains -partition- may cause broker crash

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18149:
URL: https://github.com/apache/pulsar/issues/18149#issuecomment-1321358435

   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

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