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

Denis Chudov updated IGNITE-25921:
----------------------------------
    Description: 
Take a look at example below (should be placed into 
ItThinClientTransactionsTest):
{code:java}
// org.apache.ignite.internal.runner.app.client.ItThinClientTransactionsTest
    @Test void test() {
        KeyValueView<Integer, String> kvView = kvView();
        Transaction t = client().transactions().begin();
        for (int i = 0; i < 10; i++) {
            kvView.put(t, i, "1");
        }

        Transaction tx = client().transactions().begin(new 
TransactionOptions().readOnly(true));
        for (int i = 0; i < 10; i++) {
            kvView.get(tx, i);
        }
    }
{code}
If thin client is used, the example fails with {{IGN-TX-4 Failed to acquire a 
lock due to a possible deadlock}} on GET.

  was:
Take a look at example below:

{code}
// org.apache.ignite.internal.runner.app.client.ItThinClientTransactionsTest
    @Test void test() {
        KeyValueView<Integer, String> kvView = kvView();
        Transaction t = client().transactions().begin();
        for (int i = 0; i < 10; i++) {
            kvView.put(t, i, "1");
        }

        Transaction tx = client().transactions().begin(new 
TransactionOptions().readOnly(true));
        for (int i = 0; i < 10; i++) {
            kvView.get(tx, i);
        }
    }
{code}

If thin client is used, the example fails with {{IGN-TX-4 Failed to acquire a 
lock due to a possible deadlock}} on GET.


> Tx. GET in RO transaction failed due to lock conflict
> -----------------------------------------------------
>
>                 Key: IGNITE-25921
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25921
>             Project: Ignite
>          Issue Type: Bug
>          Components: ro transactions ai3
>            Reporter: Konstantin Orlov
>            Priority: Major
>              Labels: ignite-3
>
> Take a look at example below (should be placed into 
> ItThinClientTransactionsTest):
> {code:java}
> // org.apache.ignite.internal.runner.app.client.ItThinClientTransactionsTest
>     @Test void test() {
>         KeyValueView<Integer, String> kvView = kvView();
>         Transaction t = client().transactions().begin();
>         for (int i = 0; i < 10; i++) {
>             kvView.put(t, i, "1");
>         }
>         Transaction tx = client().transactions().begin(new 
> TransactionOptions().readOnly(true));
>         for (int i = 0; i < 10; i++) {
>             kvView.get(tx, i);
>         }
>     }
> {code}
> If thin client is used, the example fails with {{IGN-TX-4 Failed to acquire a 
> lock due to a possible deadlock}} on GET.



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

Reply via email to