Tencent / TubeMQ

TubeMQ has been donated to the Apache Software Foundation and renamed to InLong, please visit the new Apache repository: https://github.com/apache/incubator-inlong

Home Page:https://inlong.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TubeMQ consumers configure the wrong standby masterIP and set it to the first,consumers will throw exceptions.

Libeibei1990 opened this issue · comments

TubeMQ consumers configure the wrong standby masterIP and set it to the first,consumers will throw exceptions. And then,consumers re-register successfully after 5min.

The reason for this problem is because consumers don‘t poll connection list if the connection times out.

[ERROR] [BaseMessageConsumer] Register to master failed.
java.util.concurrent.TimeoutException
at com.tencent.tubemq.corerpc.client.CallFuture.get(CallFuture.java:139)
at com.tencent.tubemq.corerpc.netty.NettyClient.call(NettyClient.java:157)
at com.tencent.tubemq.corerpc.RpcServiceFailoverInvoker.callMethod(RpcServiceFailoverInvoker.java:69)
at com.tencent.tubemq.corerpc.AbstractServiceInvoker.invoke(AbstractServiceInvoker.java:57)
at com.sun.proxy.$Proxy0.consumerRegisterC2M(Unknown Source)
at com.tencent.tubemq.client.consumer.BaseMessageConsumer.startMasterAndBrokerThreads(BaseMessageConsumer.java:563)
at com.tencent.tubemq.client.consumer.BaseMessageConsumer.completeSubscribe(BaseMessageConsumer.java:306)
at com.tencent.tubemq.client.consumer.SimplePushMessageConsumer.completeSubscribe(SimplePushMessageConsumer.java:76)

Thank you, you are right. When the request to the Master is abnormal, it need to try to poll other nodes, so that the client can quickly connect to the active node.