dajac opened a new pull request, #24130:
URL: https://github.com/apache/kafka/pull/24130

   `withActiveContextOrThrow` and `withActiveContext` call `lock.lock()`
   inside the `try` block whose `finally` unlocks, unlike every other use
   of the context lock in `CoordinatorRuntime`. If `lock()` failed, the
   `finally` would call `unlock()` on a lock that is not held and throw
   `IllegalMonitorStateException`.
   
   This patch moves the `lock()` call above the `try` block in both
   methods.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to