Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6579 Resolve JBoss AS 5.1.0 Test Suite Issues
  3. JBAS-6896

org.jboss.test.tm.test.MTTransactionManagerUnitTestCase(jts)

XMLWordPrintable

      testCommitSameTxInTwoThreads is failing when run in the JTS server config and was already discussed in the referenced forum thread which resulted in adjustments to the test case. Jason, can you take a look.

      7:36:46,168 INFO [MTTest] *** Starting test: testCommitSameTxInTwoThreads
      17:36:46,168 INFO [MTTest] Number of Threads: 2
      17:36:46,169 INFO [MTTest] Starting thread: Thread-2317
      17:36:46,169 INFO [MTTest] Thread-2317 TM_BEGIN (10)
      17:36:46,169 INFO [MTTest] Thread-2317 STATUS_ACTIVE
      17:36:46,169 INFO [MTTest] Thread-2317 XX_SLEEP_200
      17:36:46,169 INFO [MTTest] Starting thread: Thread-2318
      17:36:46,170 INFO [MTTest] Thread-2318 XX_WAIT_FOR (10)
      17:36:46,170 INFO [MTTest] Thread-2318 Got it
      17:36:46,170 INFO [MTTest] Thread-2318 TX_COMMIT (10)
      17:36:46,170 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_57] - Commit of action id a102fd3:aae5:4a089838:4e3a invoked while multiple threads active within it.
      17:36:46,170 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_1] - CheckedAction::check - atomic action a102fd3:aae5:4a089838:4e3a commiting with 1 threads active!
      17:36:46,175 INFO [MTTest] Thread-2318 STATUS_NO_TRANSACTION
      17:36:46,175 INFO [MTTest] Finished thread: Thread-2318
      17:36:46,369 INFO [MTTest] Thread-2317 STATUS_COMMITTED
      17:36:46,369 INFO [MTTest] Thread-2317 TM_COMMIT
      17:36:46,370 WARN [MTTest] Caught unexpected throwable
      javax.transaction.RollbackException: org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x0 minor code: 0 completed: No
      at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.commitAndDisassociate(TransactionImple.java:1405)
      at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.commit(BaseTransaction.java:165)
      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
      at org.jboss.test.tm.resource.MTOperation.tmCommit(MTOperation.java:247)
      at org.jboss.test.tm.resource.MTOperation.perform(MTOperation.java:164)
      at org.jboss.test.tm.mbean2.MTTest$ExecTask.run(MTTest.java:106)
      at java.lang.Thread.run(Thread.java:595)
      17:36:46,370 INFO [MTTest] Finished thread: Thread-2317
      17:36:46,370 INFO [MTTest] *** Finished test: testCommitSameTxInTwoThreads

              jgreene@redhat.com Jason Greene
              smcgowan@redhat.com Shelly McGowan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: