Skip to content

Commit 994d283

Browse files
asaffleschdpkp
authored andcommitted
Ignore lookup_coordinator result in commit_offsets_async (#1712)
1 parent 2a91ca1 commit 994d283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kafka/coordinator/consumer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import collections
44
import copy
5+
import functools
56
import logging
67
import time
78

@@ -457,7 +458,7 @@ def commit_offsets_async(self, offsets, callback=None):
457458
# same order that they were added. Note also that BaseCoordinator
458459
# prevents multiple concurrent coordinator lookup requests.
459460
future = self.lookup_coordinator()
460-
future.add_callback(self._do_commit_offsets_async, offsets, callback)
461+
future.add_callback(lambda r: functools.partial(self._do_commit_offsets_async, offsets, callback)())
461462
if callback:
462463
future.add_errback(lambda e: self.completed_offset_commits.appendleft((callback, offsets, e)))
463464

0 commit comments

Comments
 (0)