RongtongJin commented on a change in pull request #2169:
URL: https://github.com/apache/rocketmq/pull/2169#discussion_r458535303



##########
File path: broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
##########
@@ -329,6 +331,10 @@ public boolean initialize() throws 
CloneNotSupportedException {
                 
Executors.newFixedThreadPool(this.brokerConfig.getConsumerManageThreadPoolNums(),
 new ThreadFactoryImpl(
                     "ConsumerManageThread_"));
 
+            this.allocateMessageQueueExecutor =
+                
Executors.newFixedThreadPool(this.brokerConfig.getConsumerManageThreadPoolNums(),
 new ThreadFactoryImpl(
+                    "AllocateMessageQueueThread_"));

Review comment:
       IMO, we don’t need to open a thread pool separately, could we reuse 
consumerManageExecutor?




----------------------------------------------------------------
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:
[email protected]


Reply via email to