Currently in my kafka consumer i have turned off auto commit, so currently when processing of messages failed for ex: three invalid messages, the manual ack fails and the lag increases to three.
TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG
orders 0 35 38 3
After that if a new incoming valid message comes through and the processing of that message is successfully completed, it is manually acked and after that consumer looks like this
TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG
orders 0 39 39 0
Why does consumer set the current-offset to 39 when the messages with offset 36, 37, 38 were not successfully processed and they are never read again by the same consumer
Can anyone pls explain this behavior? Thanks in advance!