Skip to content

Commit 02007b0

Browse files
committed
also reset self.fetch_offsets in fetch_last_known_offsets
1 parent eecea88 commit 02007b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kafka/consumer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def get_or_init_offset_callback(resp):
123123
callback=get_or_init_offset_callback,
124124
fail_on_error=False)
125125
self.offsets[partition] = offset
126+
self.fetch_offsets = self.offsets.copy()
126127

127128
def commit(self, partitions=None):
128129
"""

0 commit comments

Comments
 (0)