idler41 commented on issue #465:
URL:
https://github.com/apache/rocketmq-spring/issues/465#issuecomment-1463223811
> 兄弟你是怎么解决的,能分享一下吗
同样有这个问题,debug发现一个消费者启动时获取到两个cid(DefaultLitePullConsumer与DefaultMQPushConsumer),两个consumer共享了配置(rocketmq.consumer.group,rocketmq.consumer.group.topic)。导致只分配到一半的queue。解决方法是不实例化DefaultLitePullConsumer即可。
```
@Bean(CONSUMER_BEAN_NAME)
@ConditionalOnMissingBean(DefaultLitePullConsumer.class)
@ConditionalOnProperty(prefix = "rocketmq", value = {"name-server",
"consumer.group", "consumer.topic"})
public DefaultLitePullConsumer
defaultLitePullConsumer(RocketMQProperties rocketMQProperties)
```
--
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]