This is an automated email from the ASF dual-hosted git repository.
lizhimins pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new becbe78b1e [ISSUE #9590] Fix producerManager init (#9591)
becbe78b1e is described below
commit becbe78b1eaacf3002051e1bff76444e641e6c7e
Author: ymwneu <[email protected]>
AuthorDate: Tue Nov 24 18:32:23 2026 +0800
[ISSUE #9590] Fix producerManager init (#9591)
BrokerController initialized ProducerManager with the single-argument
constructor, leaving brokerConfig null and silently disabling the
config-gated logic in ProducerManager: the fast channel-close path
(enableFastChannelEventProcess), the producer-group channel attributes it
relies on, and the register-skip optimization (enableRegisterProducer=false
with rejectTransactionMessage=true).
Pass brokerConfig at construction, matching ConsumerManager. All three
switches default to off, so default behavior is unchanged.
Fixes #9590
---
broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
index 6814d13f84..5777289df9 100644
--- a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
+++ b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
@@ -417,7 +417,7 @@ public class BrokerController {
this.messageArrivingListener = new
NotifyMessageArrivingListener(this.pullRequestHoldService,
this.popMessageProcessor, this.notificationProcessor, this.liteEventDispatcher);
this.consumerIdsChangeListener = new
DefaultConsumerIdsChangeListener(this);
this.consumerManager = new
ConsumerManager(this.consumerIdsChangeListener, this.brokerStatsManager,
this.brokerConfig);
- this.producerManager = new ProducerManager(this.brokerStatsManager);
+ this.producerManager = new ProducerManager(this.brokerStatsManager,
this.brokerConfig);
this.consumerFilterManager = new ConsumerFilterManager(this);
this.consumerOrderInfoManager = new QueueLevelConsumerManager(this);
this.popInflightMessageCounter = new PopInflightMessageCounter(this);