qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DraCzech <dracz...@gmail.com>
Subject Qpid JMS client JmsConnection.close() hangs
Date Mon, 21 Nov 2016 10:22:20 GMT
Hi, I'm currently using ActiveMQ 5.14.1 embedded broker connected from
several local queues to MS Azure IoT Hub using JmsConnectionFactory as
foreignConnectionFactory in SimpleJmsQueueConnector. (Using dependency to
qpid jms client 0.11.1) Each queue is connected to the server via its
respective bridge and everything seems to be working fine until I want to
shut down the connection.

If I have network connection, everything is stopped in few seconds. However
if I lose network connection and call SimpleJmsQueueConnector.stop() method,
it hangs on its foreignConnection.close() (JmsConnection). It remains stuck
indefinitely and I have to interrupt the thread responsible for closing of
the connection. Which unfortunately leads to more problems later as there
are remains of the connection in the system.

*Part of the thread dump:*
2016-11-16 09:35:13.275227  	- parking to wait for  <0x42e6bc08> (a
2016-11-16 09:35:13.275654  	at
2016-11-16 09:35:13.276143  	at
2016-11-16 09:35:13.276631  	at
2016-11-16 09:35:13.277058  	at
2016-11-16 09:35:13.277577  	at
2016-11-16 09:35:13.278676  	at
2016-11-16 09:35:13.279103  	at
2016-11-16 09:35:13.279622  	- locked <0x487b1cb8> (a
2016-11-16 09:35:13.280018  	at

I believe this problem is tied to the JMS specification and is caused by
MessageConsumer.receive() waiting on some pending receive. I've found some
description of the same or similar issue online, but no specific solution
for it. From what I've read I think the problem might be related to:




Could you please tell me if it's possible to set up my messaging in such a
way which prevents this kind of freeze? How should I defend against this
kind of problems?

View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-JMS-client-JmsConnection-close-hangs-tp7654565.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message