Skip to content

Commit 708cc37

Browse files
committed
Modify exception description when deleting consumergroup if the consumer is active.
1 parent be8de01 commit 708cc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gnuhpc/bigdata/service/KafkaAdminService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ public GeneralResponse deleteConsumerGroup(String consumerGroup) {
811811
zookeeperUtils.getCuratorClient().delete().deletingChildrenIfNeeded().forPath(CONSUMERPATHPREFIX + consumerGroup);
812812
} else {
813813
if (!AdminUtils.deleteConsumerGroupInZK(zkUtils, consumerGroup)) {
814-
throw new ApiException(consumerGroup + " has not been deleted for some reason");
814+
throw new ApiException("The consumer " + consumerGroup + " is still active.Please stop it first");
815815
}
816816
}
817817
} catch (Exception e) {

0 commit comments

Comments
 (0)