[jboss-jira] [JBoss JIRA] Closed: (JBAS-3627) Write test to test rollback of a NACK in 2PC

Adrian Brock (JIRA) jira-events at jboss.com
Thu Sep 21 01:10:57 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBAS-3627?page=all ]

Adrian Brock closed JBAS-3627.
------------------------------

    Resolution: Done

> Write test to test rollback of a NACK in 2PC
> --------------------------------------------
>
>                 Key: JBAS-3627
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3627
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: JMS service
>            Reporter: Luc Texier
>         Assigned To: Adrian Brock
>             Fix For: JBossAS-4.0.5.GA
>
>
> Need to test BasicQueue.acknowledge()
> whether it should also add a PostRollback task for a NACK under a transaction.
> i.e. 
>       // Was it a negative acknowledge??
>       if (!item.isAck)
>       {
>          Runnable task = new RestoreMessageTask(m);
>          server.getPersistenceManager().getTxManager().addPostCommitTask(txId, task);
> +         server.getPersistenceManager().getTxManager().addPostRollbackjTask(txId, task);
>       }
> The  hard part is wrting such a test since it is a normal condition.
> Probably need to use direct invocation on the server invoker ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list