Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-5189

Rollback on XASession when closing back to pool

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.7.0, 5.8.0, 5.9.0, 5.9.1
    • Fix Version/s: 5.10.0
    • Component/s: Pool
    • Labels:
      None
    • Environment:

      Windows, UNIX

      Description

      If you have a pool of XASession under load (heavy load might be necessary) I register sometimes following Exception "Cannot rollback() inside an XASession" in afterCompletion synchronisation. After some analysis and patching with logging I recognized that the session object is returned back to pool before setting the xa flag back to false. This leads to the effect that this session gets be used again by another thread while the earlier one switches the xa flag to false.

        Attachments

        1. vcs-diff962688386413870521.patch
          10 kB
          Benjamin Graf

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              graben Benjamin Graf
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: