summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-12-17 17:07:58 -0800
committerGitHub <noreply@github.com>2016-12-17 17:07:58 -0800
commit103ac7eb11071395fb566495a4c1e0eb62482263 (patch)
tree5a13c7021012937786ade14ee5dfffdaa2d67300
parent07e09c1c2ec6787fc7e4f3c2578d31b4a15d20bc (diff)
downloadkafka-python-103ac7eb11071395fb566495a4c1e0eb62482263.tar.gz
Fix fetcher bug when processing offset out of range (#911)
-rw-r--r--kafka/consumer/fetcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index d09f9da..bd5fc49 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -236,7 +236,7 @@ class Fetcher(six.Iterator):
current_out_of_range_partitions = {}
# filter only the fetchable partitions
- for partition, offset in self._offset_out_of_range_partitions:
+ for partition, offset in six.iteritems(self._offset_out_of_range_partitions):
if not self._subscriptions.is_fetchable(partition):
log.debug("Ignoring fetched records for %s since it is no"
" longer fetchable", partition)