[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1828) Racing condition between session.localClose() and transaction commits

Yong Hao Gao (JIRA) jira-events at lists.jboss.org
Tue Nov 23 11:04:59 EST 2010


    [ https://jira.jboss.org/browse/JBMESSAGING-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564885#comment-12564885 ] 

Yong Hao Gao commented on JBMESSAGING-1828:
-------------------------------------------

Added null check in ServerSessionEndpoint.localClose(). 
If the rec is null, it means the message has been committed, no need to cancel it anymore.

Manually tested.

> Racing condition between session.localClose() and transaction commits
> ---------------------------------------------------------------------
>
>                 Key: JBMESSAGING-1828
>                 URL: https://jira.jboss.org/browse/JBMESSAGING-1828
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: Messaging Core
>    Affects Versions: 1.4.0.SP3.CP11, 1.4.7.GA
>            Reporter: Yong Hao Gao
>            Assignee: Yong Hao Gao
>             Fix For: 1.4.0.SP3.CP12, 1.4.8.GA
>
>
> A race could happen when shutting down a session if some transaction is commiting.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list