Skip to content

Commit

Permalink
Merge pull request #542 from trauter/rhmaster2
Browse files Browse the repository at this point in the history
Fix some cases of hanging rebalance
  • Loading branch information
ask authored Oct 9, 2020
2 parents b5e159f + e7b02e8 commit 01b4c0a
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 @@ -743,6 +743,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 01b4c0a

Please sign in to comment.