summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-12-17 10:40:30 -0800
committerDana Powers <dana.powers@gmail.com>2016-12-17 10:43:26 -0800
commitc57a231ab0eca4fe138f2418b4799ceb8ef0fc6e (patch)
tree5a13c7021012937786ade14ee5dfffdaa2d67300
parent07e09c1c2ec6787fc7e4f3c2578d31b4a15d20bc (diff)
downloadkafka-python-fetcher_offset_out_of_range.tar.gz
Fix fetcher bug when processing offset out of rangefetcher_offset_out_of_range
-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)