You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Metastarx (via GitHub)" <gi...@apache.org> on 2026/10/20 15:53:13 UTC
[I] feat: add mqadmin getTopicConfig command [rocketmq]
Metastarx opened a new issue, #11472:
URL: https://github.com/apache/rocketmq/issues/11472
功能说明:Add a `getTopicConfig` mqadmin subcommand that prints the actual TopicConfig stored on a broker for a topic. Existing commands do not expose this data: topicList prints only names, topicRoute prints routing and queue counts, and topicStatus prints offsets, while TopicConfig fields such as topicFilterType, topicSysFlag, order, and custom attributes (including LITE message type and expiration) are not visible. The admin API already exists in tools/src/main/java/org/apache/rocketmq/tools/admin/MQAdminExt.java:403 and DefaultMQAdminExt.java:240, and DefaultMQAdminExtImpl.java:290 delegates to MQClientAPIImpl.getTopicConfig at client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java:3320.
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: add mqadmin getTopicConfig command [rocketmq]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #11472:
URL: https://github.com/apache/rocketmq/issues/11472#issuecomment-6295279867
**Issue Evaluation**
Category: `type/enhancement` | Status: **Evaluated — Feasible**
This is a well-scoped feature request. The gap is real: existing mqadmin commands (`topicList`, `topicRoute`, `topicStatus`) do not expose `TopicConfig` fields such as `topicFilterType`, `topicSysFlag`, `order`, and custom attributes (LITE message type, expiration, etc.).
**Feasibility:** Feasible — the underlying admin API (`MQAdminExt.getTopicConfig` / `DefaultMQAdminExtImpl.getTopicConfig`) already exists. The work is to add a new `getTopicConfig` subcommand in the tools module that delegates to this API and formats the output.
**Scope:** `tools` module (new `GetTopicConfigCommand` or similar), possibly a small addition to the admin command registry.
**Compatibility:** No breaking changes — purely additive.
**Suggested implementation:**
1. Create a new `GetTopicConfigCommand` class under `tools/src/main/java/org/apache/rocketmq/tools/command/`
2. Accept `--topic` and `--cluster` / `--namesrv` options (consistent with existing commands)
3. Call `defaultMQAdminExt.getTopicConfig(topic)` and print the result in a readable format
4. Register the command in the tools entry point
This is a good first contribution for someone familiar with the tools module.
---
*Automated evaluation by github-manager-bot*
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: add mqadmin getTopicConfig command [rocketmq]
Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin closed issue #11472: feat: add mqadmin getTopicConfig command
URL: https://github.com/apache/rocketmq/issues/11472
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org