activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <>
Subject [jira] Updated: (AMQ-2069) Thread deadlock in ActiveMQEndpointWorker class
Date Mon, 13 Jul 2009 04:31:35 GMT


Ivan updated AMQ-2069:

    Attachment: AMQ-2069.patch

I tried to provide a patch for it, please help to review it.
Thanks !

> Thread deadlock in ActiveMQEndpointWorker class
> -----------------------------------------------
>                 Key: AMQ-2069
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.3.0
>            Reporter: Ivan
>         Attachments: AMQ-2069.patch
> It will happen when one thread is in a loop to try to connect the broker, in the meanwhile
another thread calls the stop action.
> Thread A (in the run() method) holds the connectWork, and requires the shutdownMutex
when it is notified by the notifyAll action by ThreadB.
> Thread B (in the stop() method) holds the shutdownMutex, and requires the connectWork
in the disconnect method.
> I move the disconnect() invocation out of the synchronized (shutdownMutex) block, it
works well.
> Thanks !

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message