RocketMQ 5.x,当使用Proxy时消费者无法从slave节点拉取消息 #9261
-
RocketMQ版本5.3,部署采用主从异步复制,Proxy独立部署。 官方文档:
请问这是正常的吗? |
Beta Was this translation helpful? Give feedback.
Answered by
francisoliverlee
Mar 19, 2025
Replies: 1 comment
-
使用remoting客户端是的。方法是: findBrokerAddressInSubscribe(),
这个方法主要用于在订阅场景下查找指定broker的地址,支持查找master和slave,并且可以根据brokerId精确查找或随机查找。 实现代码 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lemoay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用remoting客户端是的。方法是: findBrokerAddressInSubscribe(),
AI解释
如下:流程说明:
这个方法主要用于在订阅场景下查找指定broker的地址,支持查找master和slave,并且可以根据brokerId精确查找或随机查找。
实现代码
rocketmq/client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
Lines 1153 to 1188 in 2219fd8