[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-1559) Temporary Queues are not deleted when the connection used to create them is closed
Jeff Mesnil (JIRA)
jira-events at lists.jboss.org
Thu Mar 26 05:56:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Mesnil updated JBMESSAGING-1559:
-------------------------------------
Description:
A temporary queue must be deleted when the connection used to create it is closed.
The code to do that is added in ServerSessionImpl.doHandleCreateQueue by adding a FailureListener which should be executed when the remoting connection is closed.
But that is not the case: if the remoting connection is closed properly, the connectionDestroyed event will be triggered in RemotingServiceImpl which calls RemotingConnectionImpl.destroy() and does *not* notify the FailureListener.
I've added tests to show that in TemporaryQueueTest: the temp queue is deleted if the client crashes but not if the client closes its connection properly.
If the temp queue has not been explicitely deleted by the user, it will remain on the system even after the connection is closed.
was:
A temporary queue must be deleted when the connection used to create it is closed.
The code to do that is added in ServerSessionImpl.doHandleCreateQueue by adding a FailureListener which should be executed when the remoting connection is closed.
But that is not the case: if the remoting connection is closed properly, the connectionDestroyed event will be triggered in RemotingConnectionImpl which does *not* notify the FailureListener.
I've added tests to show that in TemporaryQueueTest: the temp queue is deleted if the client crashes but not if the client closes its connection properly.
If the temp queue has not been explicitely deleted by the user, it will remain on the system even after the connection is closed.
> Temporary Queues are not deleted when the connection used to create them is closed
> ----------------------------------------------------------------------------------
>
> Key: JBMESSAGING-1559
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1559
> Project: JBoss Messaging
> Issue Type: Bug
> Reporter: Jeff Mesnil
> Assignee: Tim Fox
> Fix For: 2.0.0 Beta
>
>
> A temporary queue must be deleted when the connection used to create it is closed.
> The code to do that is added in ServerSessionImpl.doHandleCreateQueue by adding a FailureListener which should be executed when the remoting connection is closed.
> But that is not the case: if the remoting connection is closed properly, the connectionDestroyed event will be triggered in RemotingServiceImpl which calls RemotingConnectionImpl.destroy() and does *not* notify the FailureListener.
> I've added tests to show that in TemporaryQueueTest: the temp queue is deleted if the client crashes but not if the client closes its connection properly.
> If the temp queue has not been explicitely deleted by the user, it will remain on the system even after the connection is closed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list