-
Notifications
You must be signed in to change notification settings - Fork 11.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to examine pop consumer group status/progress/connection, no topic route for retry topic #5844
Comments
IMO, I think neither are good solution. Use retry topic just want to find the broker address. Maybe we can solve like this: Collection<BrokerData> values = this.examineBrokerClusterInfo().getBrokerAddrTable().values();
for (BrokerData value : values) {
String addr = value.selectBrokerAddr();
if (StringUtils.isNotBlank(addr)) {
ConsumerConnection result = this.mqClientInstance.getMQClientAPIImpl().getConsumerConnectionList(addr, consumerGroup, timeoutMillis);
if (result != null) {
return result;
}
}
} |
The broker creates the retry topic automatically when a consumer first sends a heartbeat. see ClientManageProcessor#heartBeat: rocketmq/broker/src/main/java/org/apache/rocketmq/broker/processor/ClientManageProcessor.java Lines 112 to 117 in a68078f
|
It seems that MQClientAPIImpl.popMessageAsync was directly called, resulting in no heartbeat being sent and no retry topic being created. |
The command like |
This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. |
This issue was closed because it has been inactive for 3 days since being marked as stale. |
What did you do (The steps to reproduce)?
MQClientAPIImpl.popMessageAsync
to pop a message from topicWhat is expected to see?
Consumer stats returns properly
Rocketmq 5.0.1-snapshot, latest develop branch
consumerProgress/consumerStatus/consumerConnection
These three commands both build and examine route info for normal retry topic of pop consumer, that's where the exception raises, as pop consumer won't create a normal retry topic.
I didn't come up with a perfect solution for this issue, but I have several approches
examineTopicRouteInfo
, so the MQAdmin commands would execute without exceptionThe text was updated successfully, but these errors were encountered: