'Kafka is losing message when ack is one

If we produce messages with ack=1 and a consumer is reading the messages, we are seeing that the consumer is losing messages(not processing all the messages). For example if I produce 50 messages, the consumer is only seeing 35 messages. I am not able to understand why it is happening.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source