Cannot read all the Kafka messages from all partitions of a topic
I am using a spring boot java project where I have mentioned one consumer group and just created one consumer instance. This will mean that if I poll data from this consumer it should by default read all the partitions and return data from all the partitions(entire topic data). Say I have 10 Kafka messages in my topic but whenever I use consumer.poll I get different number of records returned, sometimes I get 4, sometimes 6 and sometimes all 10.