dugenkui03 opened a new issue, #4112:
URL: https://github.com/apache/rocketmq/issues/4112
## What is the purpose of the change
The current approach like below, will swallow the `InterruptedException` and
rise an `IllegalMonitorStateException`.
```java
try{
try{
lock.lockInterruptibly();
// do something
}finally {
lock.unlock();
}
}catch (Exception e){
// error log
}
```
## Brief changelog
```java
try{
lock.lockInterruptibly();
try{
// do something
}finally {
lock.unlock();
}
}catch (Exception e){
// error log
}
```
--
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]