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

Vladislav Pyatkov updated IGNITE-20292:
---------------------------------------
    Description: 
We have several tests that check a scan-read for the sorted index. The tests 
are mostly green in TC, but if you cycle them, they frequently fail.

Perhaps this issue is connected with the latest change in transaction protocol, 
one-pase-commit. This was investigated by git-bisect, but it could also be just 
a coincidence.

Look at the test ItTableScanTest#testPhantomReads, it fails almost 10% of the 
time it runs on my local machine.
{noformat}
org.opentest4j.AssertionFailedError: 
Expected :11
Actual   :10
<Click to see difference>
        at 
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
        at 
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
        at 
org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
        at 
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
        at 
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
        at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
        at 
org.apache.ignite.internal.table.ItTableScanTest.testPhantomReads(ItTableScanTest.java:585)
        at jdk.internal.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
{noformat}

  was:
We have several tests that check a scan-read for the sorted index. The tests 
are mostly green in TC, but if you cycle them, they frequently fail.

Perhaps this issue is connected with the latest change in transaction protocol, 
one-pase-commit. This was investigated by git-bisect, but it could also be just 
a coincidence.

Look at the test ItTableScanTest#testPhantomReads, it fails almost 10% of the 
time it runs on my local machine.


> Phantom reads might happen in RW transactions
> ---------------------------------------------
>
>                 Key: IGNITE-20292
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20292
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> We have several tests that check a scan-read for the sorted index. The tests 
> are mostly green in TC, but if you cycle them, they frequently fail.
> Perhaps this issue is connected with the latest change in transaction 
> protocol, one-pase-commit. This was investigated by git-bisect, but it could 
> also be just a coincidence.
> Look at the test ItTableScanTest#testPhantomReads, it fails almost 10% of the 
> time it runs on my local machine.
> {noformat}
> org.opentest4j.AssertionFailedError: 
> Expected :11
> Actual   :10
> <Click to see difference>
>       at 
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>       at 
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>       at 
> org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
>       at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
>       at 
> org.apache.ignite.internal.table.ItTableScanTest.testPhantomReads(ItTableScanTest.java:585)
>       at jdk.internal.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> {noformat}



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

Reply via email to