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/03/29 14:44:30 UTC

[GitHub] [pulsar] leizhiyuan opened a new issue #14935: when allowAutoTopicCreation=false , resource group limit will fail to start

leizhiyuan opened a new issue #14935:
URL: https://github.com/apache/pulsar/issues/14935


   **Describe the bug**
   A clear and concise description of what the bug is.
   
   when allowAutoTopicCreation=false , resource group  limit will fail to start
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   add
   
   ```
   resourceUsageTransportClassName=org.apache.pulsar.broker.resourcegroup.ResourceUsageTopicTransportManager
   
   allowAutoTopicCreation=false
   ```
   
   
   then start broker
   
   ```
   22:37:17.036 [main] ERROR org.apache.pulsar.PulsarStandaloneStarter - Failed to start pulsar service.
   org.apache.pulsar.broker.PulsarServerException: java.lang.reflect.InvocationTargetException
   	at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:795) ~[classes/:?]
   	at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:301) ~[classes/:?]
   	at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:131) [classes/:?]
   Caused by: java.lang.reflect.InvocationTargetException
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_322]
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_322]
   	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_322]
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_322]
   	at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:775) ~[classes/:?]
   	... 2 more
   Caused by: org.apache.pulsar.client.api.PulsarClientException$TopicDoesNotExistException: {"errorMsg":"Topic non-persistent://pulsar/system/resource-usage does not exist","reqId":2195930858616055387, "remote":"localhost/127.0.0.1:6650", "local":"/127.0.0.1:51894"}
   	at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:1066) ~[classes/:?]
   	at org.apache.pulsar.client.impl.ReaderBuilderImpl.create(ReaderBuilderImpl.java:77) ~[classes/:?]
   	at org.apache.pulsar.broker.resourcegroup.ResourceUsageTopicTransportManager$ResourceUsageReader.<init>(ResourceUsageTopicTransportManager.java:129) ~[classes/:?]
   	at org.apache.pulsar.broker.resourcegroup.ResourceUsageTopicTransportManager.<init>(ResourceUsageTopicTransportManager.java:223) ~[classes/:?]
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_322]
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_322]
   	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_322]
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_322]
   	at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:775) ~[classes/:?]
   ```
   
   starting broker needs this non-persistent topic exists, but only this broker started ,we can create the non-persistent topic..
   
   dead lock..
   
   **Expected behavior**
   
   allow users set the topic name, they can use  a  persistent topic
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem 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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] Technoboy- commented on issue #14935: when allowAutoTopicCreation=false , resource group limit will fail to start

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #14935:
URL: https://github.com/apache/pulsar/issues/14935#issuecomment-1082532793


    I will work on this issue.


-- 
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] Technoboy- closed issue #14935: when allowAutoTopicCreation=false , resource group limit will fail to start

Posted by GitBox <gi...@apache.org>.
Technoboy- closed issue #14935:
URL: https://github.com/apache/pulsar/issues/14935


   


-- 
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] Technoboy- commented on issue #14935: when allowAutoTopicCreation=false , resource group limit will fail to start

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #14935:
URL: https://github.com/apache/pulsar/issues/14935#issuecomment-1083115217


   Thanks for reporting this issue. @leizhiyuan 


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