You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by satyajit vegesna <sa...@gmail.com> on 2017/10/31 18:01:38 UTC

ZkUtils.getAllPartitions giving more partition counts.

Hi,

Would like to understand the purpose of ZkUtils.getAllPartitions, as when i
try to use the method, i end up getting wrong number of partitions assigned
to Topics, i am not really sure if my understanding is wrong about this
method.
i have assumed this method would return the partition count.
But i end up getting Set[TopicAndPartition] objects, and when i try to sum
up the count of partitions, for a single topic, they exceed from the actual
topic count.

Regards,
Satyajit.