Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-4029

XARecoveryModuleHelpersUnitTest failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.3.3.Final
    • JTA, Recovery
    • None

      Looks like a byteman script issue (recovery-helper.txt
      RULE Recovery Helper await rendezvous) - I'm recording it here so we can monitor it. The test is designed to wait for phase 2 of periodic recovery but the test finds the state to be idle. The test output was:
      [INFO] Running com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest
      OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

      Error:  Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.633 s <<< FAILURE! – in com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest
      Error:  com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest.testTimelyXAResourceRecoveryHelperRemoval3 – Time elapsed: 0.251 s <<< ERROR!
      java.util.concurrent.ExecutionException: java.lang.AssertionError: Before adding recovery helper 'com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest$2$1@7db2a84a' to module 'com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule@d5837ae' is expected the state to be 'SECOND_PASS' expected:<3> but was:<0>
          at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
          at com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest.testTimelyXAResourceRecoveryHelperRemoval3(Unknown Source)
          at java.base/java.lang.reflect.Method.invoke(Method.java:580)
          at org.jboss.byteman.contrib.bmunit.BMUnitRunner$7.evaluate(BMUnitRunner.java:294)
          at org.jboss.byteman.contrib.bmunit.BMUnitRunner$6.evaluate(BMUnitRunner.java:263)
          at org.jboss.byteman.contrib.bmunit.BMUnitRunner$1.evaluate(BMUnitRunner.java:97)
      Caused by: java.lang.AssertionError: Before adding recovery helper 'com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest$2$1@7db2a84a' to module 'com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule@d5837ae' is expected the state to be 'SECOND_PASS' expected:<3> but was:<0>
          at org.junit.Assert.fail(Assert.java:89)
          at org.junit.Assert.failNotEquals(Assert.java:835)
          at org.junit.Assert.assertEquals(Assert.java:647)
          at com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest.addAndAssertTimelyXAResourceRecoveryHelperRemoval3(Unknown Source)
          at com.hp.mwtests.ts.jta.recovery.XARecoveryModuleHelpersUnitTest$2.run(XARecoveryModuleHelpersUnitTest.java:81)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
          at java.base/java.lang.Thread.run(Thread.java:1583)

              rhn-engineering-mmusgrov Michael Musgrove
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: