Add ListTopics func to ClusterAdmin interface#1155
Conversation
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
|
I feel the returned structure is insufficient..but it does too much at the same time. For example, i'm missing the 'is internal' flag. So it just returns the names of the topics. Pretty much what your code does as well - first just fetch topics. and then the configurations of the topics. I wonder, since this involves multiple network roundtrips - wouldn't it be better to leave the choice to fetch further details to the user, e.g. he calls ListTopics(), gets just the names, and then he calls DescribeTopic (i'm currently working on a PR to add this one) to fetch the details. |
|
what's missing for getting this merged? |
Currently the Sarama ClusterAdmin client (added under #1055) didn't have anything analogous to the Java client's AdminClient#listTopics() command.
This PR is to add one which will return an up-to-date map of all topics in the cluster and any non-default topic configuration that they have.