-
Notifications
You must be signed in to change notification settings - Fork 244
[Feature🚀] Implement GetConsumerConfigSubCommand for fetching consumer configuration #5649
Copy link
Copy link
Open
Labels
Difficulty level/ModerateModerate difficult ISSUEModerate difficult ISSUEfeature🚀Suggest an idea for this project.Suggest an idea for this project.help wantedExtra attention is neededExtra attention is needed
Description
Feature Description
Implement the getConsumerConfig command to retrieve consumer group subscription configuration from all brokers in the cluster.
Problem/Motivation
Administrators need to:
- View current consumer group configuration
- Verify subscription settings across cluster
- Compare configurations between brokers
- Debug configuration-related issues
Proposed Solution
// rocketmq-tools/src/commands/consumer/get_consumer_config.rs
pub struct GetConsumerConfigCommand {
admin_ext: DefaultMQAdminExt,
}
impl GetConsumerConfigCommand {
pub async fn execute(&self, opts: GetConsumerConfigOptions) -> Result<()> {
// Get cluster info
// Fetch subscription group config from each broker
// Display formatted configuration
}
}
pub struct GetConsumerConfigOptions {
pub group_name: String,
pub namesrv_addr: String,
}
pub struct ConsumerConfigInfo {
pub cluster_name: String,
pub broker_name: String,
pub config: SubscriptionGroupConfig,
}Alternatives
- Output in JSON/YAML format
- Support config comparison across brokers
Additional Context
- Java reference:
GetConsumerConfigSubCommand.java - Command name:
getConsumerConfig - Command description: "Get consumer config by subscription group name"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Difficulty level/ModerateModerate difficult ISSUEModerate difficult ISSUEfeature🚀Suggest an idea for this project.Suggest an idea for this project.help wantedExtra attention is neededExtra attention is needed