Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-18324

Calling tx.rollback() failed for commited transaction.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None

    Description

      Motivation

      Snippet below looks valid, but it failed with TransactionException "Fail to finish the transaction inconsistent state ..."

      Transaction tx = node.transactions().begin();
      try {
          // operations
      
          tx.commit();
      } finally {
          tx.rollback(); // FAILS here with TransactionException "Fail to finish the transaction inconsistent state"
      }
      

      Find reproducer in IGNITE-18171 PR in ignite-runner module: org.apache.ignite.internal.cluster.ItClusterStartupTest#testReadWriteTransaction

      Definition of Done

      Only first commit/rollback operation can throw an exception. Subsequent invocations don't throw any exception.

      Attachments

        Issue Links

          Activity

            People

              Sergey Uttsel Sergey Uttsel
              amashenkov Andrey Mashenkov
              Alexander Lapin Alexander Lapin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h