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

   In `FetchBuffer`, `RefreshingHttpsJwks` and `TopologyMetadata`, `lock()` was 
called inside the `try` block whose `finally` calls `unlock()`. If `lock()` 
throws, the `finally` calls `unlock()` on a lock that is not held, and the 
resultin `IllegalMonitorStateException` masks the original exception.
   
   This patch moves `lock()` above the `try` block at all 22 call sites, 
following #24130, and adds a test for each class that verifies the original 
exception is propagated when `lock()` fails.


-- 
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