kexianjun opened a new issue #552: Is DefaultMQPullConsumerImpl#checkConfig 
redundant judgment the defaultMQPullConsumer.getConsumerGroup()
URL: https://github.com/apache/rocketmq/issues/552
 
 
   **BUG REPORT**
   Is DefaultMQPullConsumerImpl#checkConfig redundant judgment the 
defaultMQPullConsumer.getConsumerGroup() since the Validators.checkGroup has 
judgment the defaultMQPullConsumer.getConsumerGroup() is null, seee below code 
fragment
   ```
   private void checkConfig() throws MQClientException {
           // check consumerGroup
           Validators.checkGroup(this.defaultMQPullConsumer.getConsumerGroup());
   
           // consumerGroup
           if (null == this.defaultMQPullConsumer.getConsumerGroup()) {
               throw new MQClientException(
                   "consumerGroup is null"
                       + FAQUrl.suggestTodo(FAQUrl.CLIENT_PARAMETER_CHECK_URL),
                   null);
           }
   ...
   }
   ```
   
   2. Please tell us about your environment:
   
   3. Other information (e.g. detailed explanation, logs, related issues, 
suggestions how to fix, etc):
   
   **FEATURE REQUEST**
   
   1. Please describe the feature you are requesting.
   
   2. Provide any additional detail on your proposed use case for this feature.
   
   2. Indicate the importance of this issue to you (blocker, must-have, 
should-have, nice-to-have). Are you currently using any workarounds to address 
this issue?
   
   4. If there are some sub-tasks using -[] for each subtask and create a 
corresponding issue to map to the sub task:
   
   - [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 
description here, 
   - [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 
description here,
   - ...
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to