You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/04 07:52:40 UTC

[GitHub] [rocketmq] dugenkui03 opened a new issue, #4112: The way of using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`

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: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] closed issue #4112: The way of using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`(`lock.lockInterruptibly()` )

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4112: The way of  using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`(`lock.lockInterruptibly()` )
URL: https://github.com/apache/rocketmq/issues/4112


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] commented on issue #4112: The way of using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`(`lock.lockInterruptibly()` )

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4112:
URL: https://github.com/apache/rocketmq/issues/4112#issuecomment-1605784697

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] commented on issue #4112: The way of using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`(`lock.lockInterruptibly()` )

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4112:
URL: https://github.com/apache/rocketmq/issues/4112#issuecomment-1601842259

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] djl394922860 commented on issue #4112: The way of using `ReentrantLock` in `ProcessQueue` and `RouteInfoManager`(`lock.lockInterruptibly()` )

Posted by GitBox <gi...@apache.org>.
djl394922860 commented on issue #4112:
URL: https://github.com/apache/rocketmq/issues/4112#issuecomment-1153045603

   +1


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org