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

Evgeny Stanilovsky resolved IGNITE-21127.
-----------------------------------------
    Release Note: can`t reproduce on fresh main
      Resolution: Cannot Reproduce

> Sql. Flacky test with pk keys violation
> ---------------------------------------
>
>                 Key: IGNITE-21127
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21127
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 3.0.0-beta1
>            Reporter: Evgeny Stanilovsky
>            Priority: Major
>              Labels: ignite-3
>         Attachments: pk_violations.patch
>
>
> Test below is flacky for me, but very rare and only if it runs not from 
> Idea`s runner -> run multiple times. Seems attached patch is helpful, need 
> additional investigations.
> place this code into ItSqlMultiStatementTest
> {code:java}
>     @Test
>     void test0() {
>         executeScript("CREATE TABLE test (id INT PRIMARY KEY);"
>                 + "INSERT INTO test VALUES (100)");
>         executeScript("DELETE FROM test");
>         executeScript("INSERT INTO test VALUES (100)");
>         try {
>             executeScript("INSERT INTO test VALUES (0), (100)");
>         } catch (Throwable th) {
>         }
>         assertQuery("SELECT COUNT(*) FROM test")
>                 .returns(1L).check();
>     }
> {code}



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

Reply via email to