activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From greenbean1 <>
Subject CMS 3.4.0 - Deadlock in IOTransport With Failover
Date Mon, 21 Nov 2011 19:30:10 GMT
Could Timothy Bish or someone else provide details on issue AMQCPP-376?  We
are running in to this issue on our production system.  Is there a good way
to work around this while keeping the Failover transport?

"The underlying deadlock issue is still there in trunk, so even though you
didn't see it that time, it could still occur if timing changes at all."

In digging through the code I see a CMS thread is stuck on the join as shown
below because the IOTransport input stream is blocked reading from the
Socket.  However, the comment below indicates the inputStream should be
closed (closing the socket).  Why isn't this occurring?

        // We have to close the input stream before
        // we stop the thread.  this will force us to
        // wake up the thread if it's stuck in a read
        // (which is likely).  Otherwise, the join that
        // follows will block forever.
        if( inputStream != NULL ){
            inputStream = NULL;

        // Wait for the thread to die.
        if( thread != NULL ){
            thread.reset( NULL );


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message