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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.6.1.Final
    • JCA
    • None

      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);
      

              Unassigned Unassigned
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: