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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]