feat: add mqadmin batch commands for deleting topics and subscription groups

未关闭
#11,443 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Metastarx 已经在做这个了。

开始于 2026年10月15日。

  • #11444 来自 @Metastarx —— 未关闭

评估

难度
3/5
预计耗时
半天
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
java
领域
cli

调研方向

Start from the existing client calls in MQClientAPIImpl (around line 22) and the broker handlers AdminBrokerProcessor#deleteTopicList (line 813) and #deleteSubscriptionGroupList (line 1839), which the issue says already exist. Then look at how the current mqadmin commands wire into those client methods and copy that pattern for two new batch commands. Done means both commands run against a broker, accept lists of names, and report results.

由索引模型根据 Issue 内容生成。

描述

功能说明:The broker already implements batch deletion of topics and subscription groups (AdminBrokerProcessor#deleteTopicList and AdminBrokerProcessor#deleteSubscriptionGroupList at broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java:813 and :1839, request codes DELETE_TOPIC_IN_BROKER_LIST=5002 and DELETE_SUBSCRIPTION_GROUP_LIST=5003 in remoting/src/main/java/org/apache/rocketmq/remoting/protocol/RequestCode.java:315-316, bodies DeleteTopicListRequestBody and DeleteSubscriptionGroupListRequestBody, dedup plus a RateLimiter driven by BrokerConfig#batchDeleteTopicMaxRate/#batchDeleteSubscriptionGroupMaxRate at common/src/main/java/org/apache/rocketmq/common/BrokerConfig.java:386/392, one-shot persist, and clean-offset handling for lite groups), and the client already exposes both calls (client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java:22 ...

主要语言
Java
星标
22.7k
派生
12k
平均合并
4 天 20 小时
30 天内合并 PR
11

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/rocketmq 的其他 Issue

查看 apache/rocketmq 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。