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

"number-of-heuristics" statistic is inaccurate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.6.4.Final
    • Fix Version/s: 5.7.0.Final
    • Component/s: JTA
    • Labels:
      None
    • Steps to Reproduce:
      Hide
              arjPropertyManager.getCoordinatorEnvironmentBean().setEnableStatistics(true);
      
              TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
      
              tm.begin();
      
              tm.getTransaction().enlistResource(...);
              tm.getTransaction().enlistResource(...);
      
              tm.commit();
              
              assertEquals(0, TxStats.getInstance().getNumberOfHeuristics());
      
      Show
      arjPropertyManager.getCoordinatorEnvironmentBean().setEnableStatistics( true ); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); tm.begin(); tm.getTransaction().enlistResource(...); tm.getTransaction().enlistResource(...); tm.commit(); assertEquals(0, TxStats.getInstance().getNumberOfHeuristics());
    • Estimated Difficulty:
      Low

      Description

      When a JTA transaction is ended (commit or rollback) the heuristic count is always incremented regardless of whether or not there was a heuristic and therefore does not accurately reflect the number of participants that actually reported heuristic outcomes.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                mmusgrov Michael Musgrove
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: