Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In reference to comment https://github.com/apache/kafka/pull/17957#discussion_r1862570482 ,
It might be better not to complete the future while holding the write lock. The registered action for the future could potentially try to acquire another lock that is held by a different thread, which, in turn, could be waiting on the write lock - resulting in a deadlock.
In short, I prefer to narrow the scope of the write lock to avoid potential deadlock issues.
Attachments
Issue Links
- is related to
-
KAFKA-18154 ShareConsumerTest suite times out sometimes
- Resolved
- links to