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

Extend test coverage [IGNITE-11959] NullPointerException If transaction failed and failure handler doesn't configured explicitly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • None
    • None

    Description

      Test 1. No FH and checking trace of transaction

      org.apache.ignite.internal.processors.cache.SafeLogTxFinishErrorTest#testSafeLogTxFinishErrorWithoutFailureHandler{quote}

      1. Start cluster with no FH, load data, start transaction, start and call {
        Unknown macro: {activeTx.logTxFinishErrorSafe}

        }

      2. Assert that log information doesn’t contains information about FH and no NPE occurs
      3. Assert that message starts with Failed completing the transaction: [commit=%s, tx= and tx_id is correct.

      Test 2: FH and checking trace of transaction

      org.apache.ignite.internal.processors.cache.SafeLogTxFinishErrorTest#testSafeLogTxFinishErrorWithFailureHandler{quote}

      1. Start cluster with FH, load data, start transaction, start and call {
        Unknown macro: {activeTx.logTxFinishErrorSafe}

        }

      2. Assert that log information doesn’t contains information about FH and no NPE occurs
      3. Assert that message starts with Failed completing the transaction: [commit=%s, tx= and tx_id is correct.

      Test 3: Failed String.format calling from tx

      org.apache.ignite.internal.processors.cache.SafeLogTxFinishErrorTest#testSafeLogTxFinishErrorWithFailureHandlerAndRemoveTxState{quote}

      1. Start cluster with FH, load data, start transaction with txState=null, start and call {
        Unknown macro: {activeTx.logTxFinishErrorSafe}

        }

      2. Assert that log information doesn’t contains information about FH and no NPE occurs
      3. Assert that message starts with Failed completing the transaction: [commit=%s, tx= and tx_id is correct.

       

      Attachments

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              ktkalenko@gridgain.com Kirill Tkalenko
              Alexander Lapin Alexander Lapin
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 20m
                  20m