RocketMQ异常问题解决

来源:互联网 发布:中电经纬数据库 编辑:程序博客网 时间:2024/06/05 15:47

RocketMQ消费端,接收不到消息,但是其他消费端能接收到。且在RocketMQ Console控制台打印异常信息Message Track:

com.alibaba.rocketmq.client.exception.MQClientException: Not found the consumer group consume stats, because return offset table is empty, maybe the consumer not consume any message For more information, please visit the url,
https://github.com/alibaba/RocketMQ/issues/48, com.alibaba.rocketmq.tools.admin.DefaultMQAdminExtImpl.examineConsumeStats(DefaultMQAdminExtImpl.java:240);

后经排查,是由于依赖的包版本不一致导致,调整mvn依赖的版本与生产方一致,问题解决。

        <dependency>            <groupId>com.alibaba.rocketmq</groupId>            <artifactId>rocketmq-client</artifactId>            <version>3.2.6</version>        </dependency>        <dependency>            <groupId>com.alibaba.rocketmq</groupId>            <artifactId>rocketmq-all</artifactId>            <version>3.2.6</version>            <type>pom</type>        </dependency>