Skip to content

Commit 003bb0a

Browse files
committed
Fix consumer iteration on compacted topics
1 parent 58991c5 commit 003bb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/consumer/fetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def _message_generator(self):
438438

439439
# Compressed messagesets may include earlier messages
440440
# It is also possible that the user called seek()
441-
elif msg.offset != self._subscriptions.assignment[tp].position:
441+
elif msg.offset < self._subscriptions.assignment[tp].position:
442442
log.debug("Skipping message offset: %s (expecting %s)",
443443
msg.offset,
444444
self._subscriptions.assignment[tp].position)

0 commit comments

Comments
 (0)