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

"number-of-heuristics" statistic is inaccurate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.7.0.Final
    • 5.6.4.Final
    • JTA
    • None
    • 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());
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: