activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darko Tominac <darko.tomi...@mips.com.hr>
Subject sessionLock remains locked on activeSessions.remove fail
Date Mon, 31 Jul 2017 09:58:03 GMT
For activemq ra component in file
/org/apache/activemq/ra/ServerSessionPoolImpl.java
in method returnToPool

if activeSessions.remove(ss); fails then sessionLock remeins locked.
Proposed patch is attached

 public void returnToPool(ServerSessionImpl ss) {
         sessionLock.lock();
         activeSessions.remove(ss);
         try {
             // make sure we only return non-stale sessions to the pool

commit-57715f7.commit-57715f7
<http://activemq.2283324.n4.nabble.com/file/n4729054/commit-57715f7.commit-57715f7>
 



--
View this message in context: http://activemq.2283324.n4.nabble.com/sessionLock-remains-locked-on-activeSessions-remove-fail-tp4729054.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message