I'm using rust-rdkafka to make myself a small client to manage kafka. I was trying to discover what topics a consumer group is connected to.
I tried getting the groups with this method let groups = consumer.fetch_group_list(None, Duration::from_secs(5))
and then access to the connected topics with groups.get(0).members().get(0).assignment()
. The problem is that the assignment &[u8]
returned seems to have a wierd format. Something like | 8 bytes of buffer | topic-name | 12 bytes of buffer | topic-name | ... | 14 bytes of buffer |
. Does anybody know if that's a kafka standard? Is there any documentation about this that I can check out? The crate uses librdkafka so I figured it could be something related directly to the C library.
If you know another way of getting the topics consumed by a group I would also appreciate it.