You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/05/21 14:58:11 UTC

[GitHub] [rocketmq] yuz10 opened a new issue #2935: Simple attack cause broker fail to start

yuz10 opened a new issue #2935:
URL: https://github.com/apache/rocketmq/issues/2935


   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   
   run code below, register a kv config , key is `null`
   ```
       public static void main(String[] args)
               throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
           DefaultMQAdminExt defaultMQAdminExt = new DefaultMQAdminExt();
           defaultMQAdminExt.setNamesrvAddr("localhost:9876");
           defaultMQAdminExt.start();
           defaultMQAdminExt.createAndUpdateKvConfig("ORDER_TOPIC_CONFIG", null, "broker-a:8");
           defaultMQAdminExt.shutdown();
       }
   ```
   and then restart broker
   
   - What did you expect to see?
   broker restart successfully
   
   - What did you see instead?
   java.lang.NullPointerException
   	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
   	at org.apache.rocketmq.broker.topic.TopicConfigManager.updateOrderTopicConfig(TopicConfigManager.java:374)
   	at org.apache.rocketmq.broker.BrokerController.doRegisterBrokerAll(BrokerController.java:979)
   	at org.apache.rocketmq.broker.BrokerController.registerBrokerAll(BrokerController.java:951)
   	at org.apache.rocketmq.broker.BrokerController.start(BrokerController.java:887)
   	at org.apache.rocketmq.broker.BrokerStartup.start(BrokerStartup.java:64)
   	at org.apache.rocketmq.broker.BrokerStartup.main(BrokerStartup.java:58)
   
   
   
   2. Please tell us about your environment:
   
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   


-- 
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:
users@infra.apache.org



[GitHub] [rocketmq] duhenglucky closed issue #2935: Simple attack cause broker fail to start

Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #2935:
URL: https://github.com/apache/rocketmq/issues/2935


   


-- 
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:
users@infra.apache.org



[GitHub] [rocketmq] lizhimins commented on issue #2935: Simple attack cause broker fail to start

Posted by GitBox <gi...@apache.org>.
lizhimins commented on issue #2935:
URL: https://github.com/apache/rocketmq/issues/2935#issuecomment-846356777


   It's really a problem


-- 
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:
users@infra.apache.org



[GitHub] [rocketmq] vongosling commented on issue #2935: Simple attack cause broker fail to start

Posted by GitBox <gi...@apache.org>.
vongosling commented on issue #2935:
URL: https://github.com/apache/rocketmq/issues/2935#issuecomment-846662327


   @duhenglucky milestone tag may be attacheded on pr @RongtongJin only problem category on 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.

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