Skip to content

Commit 8b1a9bd

Browse files
committed
Close kafkaZKClient in stop reassign partitions. Clear some test data.
1 parent 1ddd053 commit 8b1a9bd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docs/index.pdf

0 Bytes
Binary file not shown.

src/main/java/org/gnuhpc/bigdata/controller/KafkaController.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ public Map<Integer, Map<String, LogDirInfo>> describeLogDirs(
9292
@RequestParam(required = false) List<Integer> brokerList,
9393
@RequestParam(required = false) List<String> logDirList,
9494
@RequestParam(required = false) Map<String, List<Integer>> topicPartitionMap) {
95-
topicPartitionMap.clear();
96-
topicPartitionMap.put("__consumer_offsets", Arrays.asList(15, 16, 48));
9795
return kafkaAdminService.describeLogDirsByBrokerAndTopic(brokerList, logDirList, topicPartitionMap);
9896
}
9997

@@ -311,7 +309,7 @@ public ConsumerGroupMeta getConsumerGroupMeta(@PathVariable String consumerGroup
311309
@GetMapping(value = "/consumergroups/meta")
312310
@ApiOperation(
313311
value =
314-
"Get the meta data of the specified new consumer groups, including state, coordinator,"
312+
"Get all the meta data of new consumer groups, including state, coordinator,"
315313
+ " assignmentStrategy, members")
316314
public List<ConsumerGroupMeta> getConsumerGroupsMeta() {
317315
Set<String> consumerGroupList = kafkaAdminService.listAllNewConsumerGroups();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ public GeneralResponse stopReassignPartitions() {
18431843
log.info("Delete zk path /admin/reassign_partitions failed.");
18441844
}
18451845

1846+
kafkaZkClient.close();
18461847
return response;
18471848
}
18481849

0 commit comments

Comments
 (0)