diff options
author | Stefán Þorvarðarson <stefanth@siminn.is> | 2016-03-09 11:50:29 +0000 |
---|---|---|
committer | Stefán Þorvarðarson <stefanth@siminn.is> | 2016-03-09 11:50:29 +0000 |
commit | b787a2211ec4bdda6f06d915f819e4d8c5607cd5 (patch) | |
tree | f296eec802d92df9a77883d07f52e577f179896a /kafka | |
parent | d5f31e6e3c7d5b16f3b4da176753ea91e2330f38 (diff) | |
download | kafka-python-b787a2211ec4bdda6f06d915f819e4d8c5607cd5.tar.gz |
Bug fix: KafkaConsumer.position()
Method KafkaConsumer.position() was not refreshing position correctly
when calling self._update_fetch_positions().
Diffstat (limited to 'kafka')
-rw-r--r-- | kafka/consumer/group.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index cf77df3..b43b0f4 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -477,7 +477,7 @@ class KafkaConsumer(six.Iterator): assert self._subscription.is_assigned(partition), 'Partition is not assigned' offset = self._subscription.assignment[partition].position if offset is None: - self._update_fetch_positions(partition) + self._update_fetch_positions([partition]) offset = self._subscription.assignment[partition].position return offset |