sydcph opened a new issue, #4140:
URL: https://github.com/apache/rocketmq/issues/4140

   rocketmq集群方式:双主双从 异步复制
   版本:rocketmq-all-4.9.1-bin-release
   
   问题产生原因:集群部署在阿里云vpc网络下,使用公网slb映射到内网9876 和 10911端口,生产者在外网 
获取到的broker地址是内网地址,因此修改了broker的配置文件,如下:
   broker-master :
   brokerIP1=123.41.156.234
   brokerIP2=192.168.11.123
   
   broker-slave:
   brokerIP1=192.168.11.124
   brokerIP2=192.168.11.124
   
   此时发现外网生产者Producer的消息接收到,但是slave启动时报错:发现slave 
连接master走的是brokerIP1,没有走brokerIP2。现在不想让slave通过公网IP连接master。
     ERROR BrokerControllerScheduledThread1 - SyncSubscriptionGroup Exception, 
123.41.156.234:10911
   org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to 
123.41.156.234:10911 failed
           at 
org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:394)
 ~[rocketmq-remoting-4.9.1.jar:4.9.1]
           at 
org.apache.rocketmq.broker.out.BrokerOuterAPI.getAllSubscriptionGroupConfig(BrokerOuterAPI.java:381)
 ~[rocketmq-broker-4.9.1.jar:4.9.1]
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncSubscriptionGroupConfig(SlaveSynchronize.java:125)
 [rocketmq-broker-4.9.1.jar:4.9.1]
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncAll(SlaveSynchronize.java:52)
 [rocketmq-broker-4.9.1.jar:4.9.1]
           at 
org.apache.rocketmq.broker.BrokerController$12.run(BrokerController.java:1144) 
[rocketmq-broker-4.9.1.jar:4.9.1]
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[na:1.8.0_281]
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
[na:1.8.0_281]
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 [na:1.8.0_281]
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 [na:1.8.0_281]
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_281]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_281]
           at java.lang.Thread.run(Thread.java:748) [na:1.8.0_281]
   
   


-- 
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]

Reply via email to