Skip to content

Commit 103ac7e

Browse files
authored
Fix fetcher bug when processing offset out of range (#911)
1 parent 07e09c1 commit 103ac7e

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
@@ -236,7 +236,7 @@ def _raise_if_offset_out_of_range(self):
236236
current_out_of_range_partitions = {}
237237

238238
# filter only the fetchable partitions
239-
for partition, offset in self._offset_out_of_range_partitions:
239+
for partition, offset in six.iteritems(self._offset_out_of_range_partitions):
240240
if not self._subscriptions.is_fetchable(partition):
241241
log.debug("Ignoring fetched records for %s since it is no"
242242
" longer fetchable", partition)

0 commit comments

Comments
 (0)