So I have a kafka consumer on version 0.9.0.1 and I often run the following command to check on it:
kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zookeeper <my-zookeeper> --group my-group
Recently I've noticed that my lag randomly changes and I have no idea why, for example, if I ran the command twice I'd get:
Group Topic Pid Offset LogSize Lag Owner
<group> <topic> 0 148802905 148865604 62699 <my-consumer>
...
But on the second run, immediately after I'd get:
Group Topic Pid Offset LogSize Lag Owner
<group> <topic> 0 148865241 148865715 474 <my-consumer>
...
I also have a similar issue with another consumer group, but instead of the lag changing numbers randomly, it switches between a number and the text unknown
Where should I look? seems like a problem with kafka but may be a consumer issue as well, any ideas welcome. Thanks in advance