yzh created ROCKETMQ-262:
----------------------------

             Summary: some no working code
                 Key: ROCKETMQ-262
                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-262
             Project: Apache RocketMQ
          Issue Type: Bug
          Components: rocketmq-namesrv
    Affects Versions: 4.1.0-incubating
            Reporter: yzh
            Assignee: Xiaorui Wang
            Priority: Trivial
         Attachments: NamesrvStartup.java

when i view and study the source code of the rocketmq.
i find some problems code.
In the NamesrvStartup class, i find when the commandLine.hasOption('p') that 
the next code is 
make no difference:
       if (commandLine.hasOption('p')) {
               //the code below have no no difference,because the first arg is 
null. the printObjectProperties method will do nothing when first arg is null.
                MixAll.printObjectProperties(null, namesrvConfig);
                MixAll.printObjectProperties(null, nettyServerConfig);
                System.exit(0);
            }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to