You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2021/10/28 08:32:29 UTC
[GitHub] [activemq-artemis] brusdev commented on a change in pull request #3817: ARTEMIS-3145 ensure lock validity before releasing
brusdev commented on a change in pull request #3817:
URL: https://github.com/apache/activemq-artemis/pull/3817#discussion_r738161652
##########
File path: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/FileLockNodeManager.java
##########
@@ -355,7 +355,7 @@ private byte getState() throws NodeManagerException {
result = bb.get(0);
}
} finally {
- if (lock != null) {
+ if (lock != null && lock.isValid()) {
Review comment:
why not just ignore ClosedChannelException?
--
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: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org