mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 13:49:50 +08:00
[ISSUE #6213] fix: when subscriptionGroupConfig is null ,we do not register consumer
This commit is contained in:
+15
-15
@@ -115,21 +115,21 @@ public class ClientManageProcessor implements NettyRequestProcessor {
|
||||
subscriptionGroupConfig.getRetryQueueNums(),
|
||||
PermName.PERM_WRITE | PermName.PERM_READ, hasOrderTopicSub, topicSysFlag);
|
||||
}
|
||||
|
||||
boolean changed = this.brokerController.getConsumerManager().registerConsumer(
|
||||
consumerData.getGroupName(),
|
||||
clientChannelInfo,
|
||||
consumerData.getConsumeType(),
|
||||
consumerData.getMessageModel(),
|
||||
consumerData.getConsumeFromWhere(),
|
||||
consumerData.getSubscriptionDataSet(),
|
||||
isNotifyConsumerIdsChangedEnable
|
||||
);
|
||||
|
||||
if (changed) {
|
||||
LOGGER.info(
|
||||
"ClientManageProcessor: registerConsumer info changed, SDK address={}, consumerData={}",
|
||||
RemotingHelper.parseChannelRemoteAddr(ctx.channel()), consumerData.toString());
|
||||
if (null != subscriptionGroupConfig) {
|
||||
boolean changed = this.brokerController.getConsumerManager().registerConsumer(
|
||||
consumerData.getGroupName(),
|
||||
clientChannelInfo,
|
||||
consumerData.getConsumeType(),
|
||||
consumerData.getMessageModel(),
|
||||
consumerData.getConsumeFromWhere(),
|
||||
consumerData.getSubscriptionDataSet(),
|
||||
isNotifyConsumerIdsChangedEnable
|
||||
);
|
||||
if (changed) {
|
||||
LOGGER.info(
|
||||
"ClientManageProcessor: registerConsumer info changed, SDK address={}, consumerData={}",
|
||||
RemotingHelper.parseChannelRemoteAddr(ctx.channel()), consumerData.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user