rocketmq WARN BrokerControllerScheduledThread1 - registerBroker Exception

日志如下 这个是mq的服务器端打的日志 broker.log

2018-08-28 08:16:08 INFO BrokerControllerScheduledThread1 - slave fall behind master, how much, 0 bytes
2018-08-28 08:16:12 INFO BrokerControllerScheduledThread1 - register broker to name server 10.166.15.21:9876 OK
2018-08-28 08:16:12 WARN BrokerControllerScheduledThread1 - registerBroker Exception, 10.166.15.22:9876
com.alibaba.rocketmq.remoting.exception.RemotingConnectException: connect to <10.166.15.22:9876> failed
    at com.alibaba.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:641) ~[rocketmq-remoting-3.2.6.jar:na]
    at com.alibaba.rocketmq.broker.out.BrokerOuterAPI.registerBroker(BrokerOuterAPI.java:153) ~[rocketmq-broker-3.2.6.jar:na]
    at com.alibaba.rocketmq.broker.out.BrokerOuterAPI.registerBrokerAll(BrokerOuterAPI.java:193) ~[rocketmq-broker-3.2.6.jar:na]
    at com.alibaba.rocketmq.broker.BrokerController.registerBrokerAll(BrokerController.java:591) [rocketmq-broker-3.2.6.jar:na]
    at com.alibaba.rocketmq.broker.BrokerController$7.run(BrokerController.java:561) [rocketmq-broker-3.2.6.jar:na]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_51]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_51]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_51]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_51]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
2018-08-28 08:16:12 INFO BrokerControllerScheduledThread1 - register broker to name server 10.166.15.20:9876 OK
2018-08-28 08:16:12 WARN BrokerControllerScheduledThread1 - registerBroker Exception, 10.166.15.23:9876

问题 可能有两个

1个是要连接的服务器的nameserver 服务宕机或者网络不通

2 是要连接的服务器 有防火墙

参考:

https://www.oschina.net/question/3519485_2243964?sort=time

https://blog.csdn.net/fuyuwei2015/article/details/77097401

 

你可能感兴趣的:(MQ中间件)