RocketMQ突然No route info of this topic

RocketMQ突然No route info of this topic

问题背景

测试环境RocketMQ一直正常运行,突然出现错误字样无此主题的路由信息(想把找到伴侣的好消息带回家,但找不到回家的路)。

  • No route info of this topic
  • RocketMQ Message hasn't been sent. Caused by No route info of this topic: xxx
  • org.apache.rocketmq.client.exception.MQClientException: No route info of this topic: xxx
java 复制代码
RocketMQProducerMessageHandler RocketMQProducerMessageHandler.java.200
org.apache.rocketmq.client.exception.MQClientException: No route info of this topic: springCloudBus
See http://rocketmq.apache.org/docs/faq/ for further details.
	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:667)
	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1363)
	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1307)
	at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:333)
	at com.alibaba.cloud.stream.binder.rocketmq.integration.outbound.RocketMQProducerMessageHandler.send(RocketMQProducerMessageHandler.java:227)
	at com.alibaba.cloud.stream.binder.rocketmq.integration.outbound.RocketMQProducerMessageHandler.handleMessageInternal(RocketMQProducerMessageHandler.java:184)
	at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:55)
	at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder$SendingHandler.handleMessageInternal(AbstractMessageChannelBinder.java:1105)
	at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:55)
	at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:115)
	at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:133)
	at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:106)
	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72)
	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:317)
	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:272)
	at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:239)
	at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:171)
	at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:151)
	at org.springframework.cloud.bus.StreamBusBridge.send(StreamBusBridge.java:36)
	at org.springframework.cloud.bus.RemoteApplicationEventListener.onApplicationEvent(RemoteApplicationEventListener.java:46)
	at org.springframework.cloud.bus.RemoteApplicationEventListener.onApplicationEvent(RemoteApplicationEventListener.java:26)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)

问题排查

1.检查mqnamesrv是否启动成功

  • 启动成功日志如下

2.检查mqbroker是否启动成功

  • 启动mqbroker成功日志如下

发现问题

  • bin目录下启动时mqbroker时,并没有打印成功日志,而是停留在当前执行窗口。
  • 定位问题:启动mqbroker失败!!!

解决问题

如果是正式环境,就不要随意删除store目录啦。即使要删除,先备份哦!!!

  • 启动broker失败,测试环境直接删除数据存储store目录,该目录默认在${user.home}/store
  • window cmd查看:输入 echo %userprofile%echo %USERPROFILE%

相关推荐
RemainderTime5 天前
(七)Spring Cloud Alibaba 2023.x:RocketMQ 消息队列配置与实现
后端·spring cloud·微服务·rocketmq
你啊我啊你好6 天前
常用的消息中间件(ActiveMQ、RabbitMQ、RocketMQ、Kafka)面试精华
rabbitmq·rocketmq·activemq
Hello-Brand6 天前
RocketMQ系列3:核心技术介绍
消息队列·rabbitmq·rocketmq·mq·消息中间件·削峰填谷
_BugMan7 天前
【业务场景】订单超时取消的各种方案
redis·java-ee·rocketmq
Ch.yang11 天前
【架构】从 Socket 的角度认识非阻塞模型
tomcat·rocketmq
码农老起11 天前
从RocketMQ到Dubbo:自研中间件技术的崛起
中间件·dubbo·rocketmq
Steven_Mmm13 天前
关于消息队列性能是否能接收 5 万个 MQ
kafka·rocketmq
小范馆13 天前
RocketMQ面试题合集
java·rocketmq·java-rocketmq
菜菜-plus13 天前
Kafka | RabbitMQ | RocketMQ | ActiveMQ 的区别和入门案例
kafka·rabbitmq·rocketmq
Hello-Brand17 天前
RocketMQ系列2:领域模型和技术概念
消息队列·rocketmq·消息中间件