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

org.apache.activemq.TransactionContext.recover(int flag) should return null or an empty array when it receives the flag XAResource.TMNOFLAGS as it has return all transactions when called with XAResource.TMSTARTRSCAN. or XAResource. TMENDRSCAN.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.12.1
    • 5.14.0
    • Transport
    • Patch Available

    Description

      org.apache.activemq.TransactionContext implements XAResource. The recover method currently ignores the flag parameter, returning all transaction regardless of flags passed to it. This behaviour cause our transaction manager (IIB) to go into an indefinite loop. It is expecting to get an empty array or null when XAResource.TMNOFLAGS is passed as all transactions where returned by the prior XAResource.TMSTARTRSCAN call.

      Attachments

        1. AMQRecoveryTester.java
          4 kB
          Chris Roberts
        2. XAHandlerXid.java
          3 kB
          Chris Roberts
        3. activemq 5.12.patch
          0.8 kB
          Chris Roberts

        Activity

          People

            gtully Gary Tully
            chrisr45 Chris Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: