kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Baugher <bjb...@gmail.com>
Subject Kafka consumer stalled processing on some partitions
Date Mon, 18 Sep 2017 18:55:36 GMT
Hi everyone,

We've seen some instances of our consumer groups when running normally not
process any messages from some partitions for minutes while other
partitions are seeing regularly updates in seconds. In some cases when a
consumer group had a significant lag (hours of messages), some partitions
would not see any processing for up to an hour until the lag came back to

Following the code it looks like the client sends a fetch request per
leader with all the partitions that broker is leader of[1] and the leader
then responds by reading messages off each partition sequentially until max
fetch bytes is reached[2]. From this it seems like a consumer might not
read any messages from a partition for some time until the consumer has
caught up on these other partitions. Does this seem plausible?

We determine this stalled processing from a monitoring tool that reads the
offset commit messages and tracks the commit time for each group's
partitions, so we effectively have the last time an offset was committed
for each partition.

We are currently using Kafka and the new kafka consumer API.

[1] -
[2] -


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message