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

It's not possible to combine start and end flags in call of XATerminator.recover

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.6.1.Final
    • Fix Version/s: None
    • Component/s: JCA
    • Labels:
      None

      Description

      Current implementation of XATerminator.recover (either for JTA or JTS) does not permit combining flags to use.

      https://github.com/jbosstm/narayana/blob/5.6.1.Final/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/transaction/arjunacore/jca/XATerminatorImple.java#L323
      https://github.com/jbosstm/narayana/blob/5.6.1.Final/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/transaction/jts/jca/XATerminatorImple.java#L246

      Flags are expected to be combined as their values are designed to use bitwise operators. Especially | is handy for starting and ending the recover scan in once.

      Currently we need to call

      XATerminator.recover(XAResource.TMSTARTRSCAN);
      XATerminator.recover(XAResource.TMENDRSCAN);
      

      Values are

      XAResource.TMSTARTRSCAN : 16777216  : 1000000000000000000000000
      XAResource.TMENDRSCAN    : 8388608    : 100000000000000000000000
      

      The way would be ability to call the recover like this

      XATerminator.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN);
      

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated: