Skip to content

Commit 2b9a6b2

Browse files
author
zengqiao
committed
消费组信息获取时不包含认证信息
1 parent 465f98c commit 2b9a6b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/group/impl/GroupServiceImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ public ConsumerGroupDescription getGroupDescription(Long clusterPhyId, String gr
102102
AdminClient adminClient = kafkaAdminClient.getClient(clusterPhyId);
103103

104104
try {
105-
DescribeConsumerGroupsResult describeConsumerGroupsResult = adminClient.describeConsumerGroups(Arrays.asList(groupName), new DescribeConsumerGroupsOptions().timeoutMs(KafkaConstant.ADMIN_CLIENT_REQUEST_TIME_OUT_UNIT_MS).includeAuthorizedOperations(true));
105+
DescribeConsumerGroupsResult describeConsumerGroupsResult = adminClient.describeConsumerGroups(
106+
Arrays.asList(groupName),
107+
new DescribeConsumerGroupsOptions().timeoutMs(KafkaConstant.ADMIN_CLIENT_REQUEST_TIME_OUT_UNIT_MS).includeAuthorizedOperations(false)
108+
);
106109

107110
return describeConsumerGroupsResult.all().get().get(groupName);
108111
} catch(Exception e){

0 commit comments

Comments
 (0)