Skip to content

Commit

Permalink
enable offset resetting to 0 (used for recovery)
Browse files Browse the repository at this point in the history
  • Loading branch information
trauter committed Apr 13, 2020
1 parent 38d61a7 commit e7b02e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faust/transport/drivers/aiokafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ async def _seek_wait(self,
consumer.seek(tp, offset)
if offset > 0:
self.consumer._read_offset[tp] = offset
elif tp in self.consumer._read_offset.keys():
del self.consumer._read_offset[tp]
await asyncio.gather(*[
consumer.position(tp) for tp in partitions
])
Expand Down

0 comments on commit e7b02e8

Please sign in to comment.