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

Luc Texier (JIRA) jira-events at jboss.com
Wed Sep 6 06:47:29 EDT 2006


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