Enabling synonyms for TopicConfig
This commit is contained in:
parent
b74a643c93
commit
8a4df6b002
1 changed files with 2 additions and 1 deletions
|
@ -337,7 +337,8 @@ public class KafkaService {
|
|||
.map(topicName -> new ConfigResource(ConfigResource.Type.TOPIC, topicName))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
return ClusterUtil.toMono(adminClient.describeConfigs(resources).all())
|
||||
return ClusterUtil.toMono(adminClient.describeConfigs(resources,
|
||||
new DescribeConfigsOptions().includeSynonyms(true)).all())
|
||||
.map(configs ->
|
||||
configs.entrySet().stream().collect(Collectors.toMap(
|
||||
c -> c.getKey().name(),
|
||||
|
|
Loading…
Add table
Reference in a new issue