Emmanuel Hugonnet created ARTEMIS-5873:
------------------------------------------
Summary: Infinite loop in Shutdown
Key: ARTEMIS-5873
URL: https://issues.apache.org/jira/browse/ARTEMIS-5873
Project: Artemis
Issue Type: Bug
Components: Broker
Affects Versions: 2.50.0
Reporter: Emmanuel Hugonnet
When shutting down the server the scheduledPool.shutdownNow() is called which
my lead to a failure:
java.nio.channels.ClosedByInterruptException:
org.apache.activemq.artemis.core.server.NodeManager$NodeManagerException:
java.nio.channels.ClosedByInterruptException
at
[email protected]//org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.getState(FileLockNodeManager.java:375)
Thus when the server, pursuing the shutdown, invoke
FileLockNodeManager.pausePrimaryServer() it will go to the lock() method with
tryLock() failing due to a java.nio.channels.ClosedChannelException.
The issue is that then it will go into an infinite loop, waiting 2 seconds then
trying to get the lock again etc. without any trace due to
lockAcquisitionTimeoutNanos being set to -1 by default
For a sample stack trace : https://issues.redhat.com/browse/WFLY-21414
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]