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

XARecoveryModuleHelpersUnitTest hang

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.2.14.Final
    • 5.1.1
    • Recovery
    • None

      The test checks that recovery helpers can be removed at the correct stages during recovery scans. The CI job http://albany.eng.hst.ams2.redhat.com/job/narayana-codeCoverage/196 shows the hang.

      The junit test thread:

      • starts 2 threads that will remove a recovery helper
      • triggers xaRecoveryModule.periodicWorkFirstPass()
      • triggers xaRecoveryModule.periodicWorkSecondPass()
      • joins with remover threads

      The jstack output shows:

      • the two threads in the process of removing a recovery helper and are waiting for the first pass to finish;
      • the junit test thread is waiting to join with these two threads;

      Since both recovery passes must have completed it looks like the remover threads weren't notified when the first pass completed.

        1. 32287.jstack
          7 kB
        2. hang.jstack
          6 kB

              thjenkin@redhat.com Tom Jenkinson
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: