[ 
https://issues.apache.org/jira/browse/IGNITE-18324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Uttsel updated IGNITE-18324:
-----------------------------------
    Description: 
h3. Motivation

Snippet below looks valid, but it failed with TransactionException "Fail to 
finish the transaction inconsistent state ..."
{code:java}
Transaction tx = node.transactions().begin();
try {
    // operations

    tx.commit();
} finally {
    tx.rollback(); // FAILS here with TransactionException "Fail to finish the 
transaction inconsistent state"
}
{code}
Find reproducer in IGNITE-18171 PR in ignite-runner module: 
org.apache.ignite.internal.cluster.ItClusterStartupTest#testReadWriteTransaction
h3. Definition of Done

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

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

{code:java}
Transaction tx = node.transactions().begin();
try {
    // operations

    tx.commit();
} finally {
    tx.rollback(); // FAILS here with TransactionException "Fail to finish the 
transaction inconsistent state"
}
{code}

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


> Calling tx.rollback() failed for commited transaction.
> ------------------------------------------------------
>
>                 Key: IGNITE-18324
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18324
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Andrey Mashenkov
>            Assignee: Sergey Uttsel
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> h3. Motivation
> Snippet below looks valid, but it failed with TransactionException "Fail to 
> finish the transaction inconsistent state ..."
> {code:java}
> Transaction tx = node.transactions().begin();
> try {
>     // operations
>     tx.commit();
> } finally {
>     tx.rollback(); // FAILS here with TransactionException "Fail to finish 
> the transaction inconsistent state"
> }
> {code}
> Find reproducer in IGNITE-18171 PR in ignite-runner module: 
> org.apache.ignite.internal.cluster.ItClusterStartupTest#testReadWriteTransaction
> h3. Definition of Done
> Only first commit/rollback operation can throw an exception. Subsequent 
> invocations don't throw any exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to