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

Transaction statistics for read-only + last record may go wrong

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 5.10.0.Final
    • Fix Version/s: 5.10.1.Final
    • Component/s: JTA
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      EAP QE crashrec testsuite is to be enhanced with test StatisticsTestCase#readOnlyLastResource.

      Show
      EAP QE crashrec testsuite is to be enhanced with test StatisticsTestCase#readOnlyLastResource .

      Description

      As discussed at https://issues.jboss.org/browse/WFTC-78?focusedCommentId=13808486#comment-13808486 there was seen a wrong statistics being reported at a remote ejb calls for WFLY. The number of committed transactions went bigger than the number of all processed transactions.

      This happens when the transaction consists of XAResource which announces to be read only during prepare call and with the second resource which is LastResource (https://github.com/jbosstm/jboss-transaction-spi/blob/master/src/main/java/org/jboss/tm/LastResource.java).
      In such case the onePhaseCommit could be called during the BasicAction#prepare call (https://github.com/jbosstm/narayana/blob/5.10.0.Final/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java#L2170).
      In such case the statistics of committed transactions are increased during the onePhaseCommit method call and then during the phase2Commit at BasicAction#End call (https://github.com/jbosstm/narayana/blob/5.10.0.Final/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java#L1529).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ochaloup Ondrej Chaloupka
                  Reporter:
                  ochaloup Ondrej Chaloupka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: