From a94d8fa1cb670b65a4815a05cda6f774f555c632 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sat, 9 Jan 2016 16:52:01 -0800 Subject: KAFKA-2978: consumer stops fetching when consumed and fetch positions get out of sync --- kafka/consumer/group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kafka/consumer/group.py') diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 9ce1438..4930ba1 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -452,10 +452,10 @@ class KafkaConsumer(six.Iterator): """ assert self._subscription.is_assigned(partition) - offset = self._subscription.assignment[partition].consumed + offset = self._subscription.assignment[partition].position if offset is None: self._update_fetch_positions(partition) - offset = self._subscription.assignment[partition].consumed + offset = self._subscription.assignment[partition].position return offset def pause(self, *partitions): -- cgit v1.2.1