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%

相关推荐
dengjiayue3 天前
kafka 与 RocketMQ对比
分布式·kafka·rocketmq
HPF_993 天前
RabbitMQ、RocketMQ 和 Kafka 的消息特性对比
kafka·rabbitmq·rocketmq
A初夏13 天前
Linux 部署 rocketmq centos7
rocketmq
孫治AllenSun4 天前
【RocketMQ&&RocketMQ Dashbord】Springboot整合RocketMQ
spring boot·rocketmq·java-rocketmq
逍遥德6 天前
【数据库事务、消息队列事务、Redis 事务、Spring 事务 详细分析】
数据库·redis·spring·rabbitmq·rocketmq
Gary_Tam7 天前
RocketMQ可视化工具使用 - Dashboard(保姆级教程)
rocketmq
嗯嗲和滴7 天前
消息队列(Kafka及RocketMQ等对比联系)
分布式·kafka·rocketmq
宋发元9 天前
消息队列ActiveMQ、RabbitMQ、RocketMQ、Kafka对比分析和选型
消息队列·rabbitmq·rocketmq·activemq
橡果的笔记11 天前
5.借助RocketMQ实现批量消费存储设备上线次数
后端·数据分析·rocketmq
S01d13r13 天前
RocketMQ 架构
架构·rocketmq