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/11/16 04:13:55 UTC

[GitHub] [rocketmq] XiaoyiPeng opened a new issue #3492: DefaultMQPushConsumerImpl#adjustThreadPool() has no effect.

XiaoyiPeng opened a new issue #3492:
URL: https://github.com/apache/rocketmq/issues/3492


   **BUG REPORT**
   
   1. Please describe the issue you observed:
   DefaultMQPushConsumerImpl#adjustThreadPool() has no effect. The code shown below:
   
   ```
   public void adjustThreadPool() {
           long computeAccTotal = this.computeAccumulationTotal();
           long adjustThreadPoolNumsThreshold = this.defaultMQPushConsumer.getAdjustThreadPoolNumsThreshold();
   
           long incThreshold = (long) (adjustThreadPoolNumsThreshold * 1.0);
   
           long decThreshold = (long) (adjustThreadPoolNumsThreshold * 0.8);
   
           if (computeAccTotal >= incThreshold) {
               this.consumeMessageService.incCorePoolSize();
           }
   
           if (computeAccTotal < decThreshold) {
               this.consumeMessageService.decCorePoolSize();
           }
       }
   ```
   The method `ConsumeMessageService#incCorePoolSize()`  has a empty  body and does nothing in their implementation class. For example, in class `org.apache.rocketmq.client.impl.consumerConsumeMessageConcurrentlyService`
   ```
   @Override
       public void incCorePoolSize() {
   
       }
   
       @Override
       public void decCorePoolSize() {
   
       }
   ```
   
   2. Please tell us about your environment:
   
     
       Windows10
   
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

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