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

Invalid warning when committing STM optimistic records

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2
    • Fix Version/s: 5.6.0.Final
    • Component/s: STM
    • Labels:
      None

      Description

      There is some code in OptimisticLockRecord#topLevelCommit that generates an invalid warning

      WARN: ARJUNA015051: OptimisticLockRecord.topLevelCommit state check failed for org.jboss.stm.internal.proxy.OptimisticLockManagerProxy@7f058cfa will force rollback.

      when in fact there is no rollback. The offending code is:

          public int topLevelCommit ()
          {       
              boolean stateOK = checkState();
              
              if (stateOK)
              {
                  txojLogger.i18NLogger.warn_OptimisticLockRecord_2((LockManager) value());
              }
      

      The condition was intended to be if (!stateOK)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                mmusgrov Michael Musgrove
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: