Skip to content

Commit

Permalink
KAFKA-17299: Fix Kafka Streams consumer hang issue (#17899)
Browse files Browse the repository at this point in the history
When Kafka Streams skips overs corrupted messages, it might not resume previously paused partitions,
if more than one record is skipped at once, and if the buffer drop below the max-buffer limit at the same time.

Reviewers: Matthias J. Sax <[email protected]>
  • Loading branch information
laxman-ch authored Nov 23, 2024
1 parent cd36d64 commit d36b24f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ record = partitionGroup.nextRecord(recordInfo, wallClockTime);

// after processing this record, if its partition queue's buffered size has been
// decreased to the threshold, we can then resume the consumption on this partition
if (recordInfo.queue().size() == maxBufferedSize) {
if (recordInfo.queue().size() <= maxBufferedSize) {
partitionsToResume.add(partition);
}

Expand Down

0 comments on commit d36b24f

Please sign in to comment.