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

Nikita Sivkov updated IGNITE-21777:
-----------------------------------
    Description: 
*Steps to reproduce:*
 # Create a cluster with 2 nodes.
 # Connect via JDBC.
 # Repeat the following SQL statements in a loop (for example, 100 times):
 ** {{drop table if exists tags}}
 ** {{create zone if not exists "AIMEM" engine aimem}}
 ** {{create table tags(tagId integer not null, tag varchar(100) not null, 
primary key (tagId)) with PRIMARY_ZONE='AIMEM'}}
 ** {{insert into tags(tagId, tag) values (1,'unit'), (2,'integration'), 
(3,'smoke'), (4,'sanity'), (5,'regression')}}

*Expected result:*

No errors or hangs happen.

*Actual result:*

Hangs on {{Create table}} or {{Insert into}} statement.

_*OR*_

Get the error {{Replication is timed out}}
{code:java}
Replication is timed out [replicaGrpId=34_part_16]
java.sql.SQLException: Replication is timed out [replicaGrpId=34_part_16]
    at 
org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
    at 
org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
    at 
org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
    at 
org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
    at 
org.gridgain.ai3tests.tests.UpdateTests.wannaCatchTheBug(UpdateTests.java:95)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834) {code}
_*OR*_

Get the error {{Failed to get the primary replica}}
{code:java}
java.sql.SQLException: Failed to get the primary replica 
[tablePartitionId=18_part_1]
        at 
org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
        at 
org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
        at 
org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
        at 
org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
        at 
org.gridgain.ai3tests.tests.UpdateTests.createAndFillTables(UpdateTests.java:247)
        at io.qameta.allure.Allure.lambda$step$0(Allure.java:113)
        at io.qameta.allure.Allure.lambda$step$1(Allure.java:127)
        at io.qameta.allure.Allure.step(Allure.java:181)
        at io.qameta.allure.Allure.step(Allure.java:125)
        at io.qameta.allure.Allure.step(Allure.java:112)
        at 
org.gridgain.ai3tests.tests.UpdateTests.updateTableWithConditionThatHasLinkedInnerSubQueries(UpdateTests.java:147)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834) {code}

  was:
*Steps to reproduce:* # Create a cluster with 2 nodes.
 # Connect via JDBC.
 # Repeat the following SQL statements in a loop (for example, 100 times):
 ** {{drop table if exists tags}}
 ** {{create zone if not exists "AIMEM" engine aimem}}
 ** {{create table tags(tagId integer not null, tag varchar(100) not null, 
primary key (tagId)) with PRIMARY_ZONE='AIMEM'}}
 ** {{insert into tags(tagId, tag) values (1,'unit'), (2,'integration'), 
(3,'smoke'), (4,'sanity'), (5,'regression')}}

*Expected result:*

No errors or hangs happen.

*Actual result:*

Hangs on {{Create table}} or {{Insert into}} statement.

OR

Get the error {{Replication is timed out}}
{code:java}
Replication is timed out [replicaGrpId=34_part_16]
java.sql.SQLException: Replication is timed out [replicaGrpId=34_part_16]
    at 
org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
    at 
org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
    at 
org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
    at 
org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
    at 
org.gridgain.ai3tests.tests.UpdateTests.wannaCatchTheBug(UpdateTests.java:95)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834) {code}
OR

Get the error {{Failed to get the primary replica}}
{code:java}
java.sql.SQLException: Failed to get the primary replica 
[tablePartitionId=18_part_1]
        at 
org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
        at 
org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
        at 
org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
        at 
org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
        at 
org.gridgain.ai3tests.tests.UpdateTests.createAndFillTables(UpdateTests.java:247)
        at io.qameta.allure.Allure.lambda$step$0(Allure.java:113)
        at io.qameta.allure.Allure.lambda$step$1(Allure.java:127)
        at io.qameta.allure.Allure.step(Allure.java:181)
        at io.qameta.allure.Allure.step(Allure.java:125)
        at io.qameta.allure.Allure.step(Allure.java:112)
        at 
org.gridgain.ai3tests.tests.UpdateTests.updateTableWithConditionThatHasLinkedInnerSubQueries(UpdateTests.java:147)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834) {code}


> 'Failed to get the primary replica' or 'Replication is timed out' or hangs 
> with 'aimem' storage engine
> ------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-21777
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21777
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 3.0.0-beta2
>         Environment: Cluster of 2 nodes.
> Storage engine - aimem.
>            Reporter: Nikita Sivkov
>            Priority: Major
>              Labels: ignite-3
>
> *Steps to reproduce:*
>  # Create a cluster with 2 nodes.
>  # Connect via JDBC.
>  # Repeat the following SQL statements in a loop (for example, 100 times):
>  ** {{drop table if exists tags}}
>  ** {{create zone if not exists "AIMEM" engine aimem}}
>  ** {{create table tags(tagId integer not null, tag varchar(100) not null, 
> primary key (tagId)) with PRIMARY_ZONE='AIMEM'}}
>  ** {{insert into tags(tagId, tag) values (1,'unit'), (2,'integration'), 
> (3,'smoke'), (4,'sanity'), (5,'regression')}}
> *Expected result:*
> No errors or hangs happen.
> *Actual result:*
> Hangs on {{Create table}} or {{Insert into}} statement.
> _*OR*_
> Get the error {{Replication is timed out}}
> {code:java}
> Replication is timed out [replicaGrpId=34_part_16]
> java.sql.SQLException: Replication is timed out [replicaGrpId=34_part_16]
>     at 
> org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
>     at 
> org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
>     at 
> org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
>     at 
> org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
>     at 
> org.gridgain.ai3tests.tests.UpdateTests.wannaCatchTheBug(UpdateTests.java:95)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>     at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>     at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>     at java.base/java.lang.Thread.run(Thread.java:834) {code}
> _*OR*_
> Get the error {{Failed to get the primary replica}}
> {code:java}
> java.sql.SQLException: Failed to get the primary replica 
> [tablePartitionId=18_part_1]
>         at 
> org.apache.ignite.internal.jdbc.proto.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:57)
>         at 
> org.apache.ignite.internal.jdbc.JdbcStatement.execute0(JdbcStatement.java:154)
>         at 
> org.apache.ignite.internal.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:181)
>         at 
> org.gridgain.ai3tests.tests.teststeps.JdbcSteps.executeUpdateQuery(JdbcSteps.java:116)
>         at 
> org.gridgain.ai3tests.tests.UpdateTests.createAndFillTables(UpdateTests.java:247)
>         at io.qameta.allure.Allure.lambda$step$0(Allure.java:113)
>         at io.qameta.allure.Allure.lambda$step$1(Allure.java:127)
>         at io.qameta.allure.Allure.step(Allure.java:181)
>         at io.qameta.allure.Allure.step(Allure.java:125)
>         at io.qameta.allure.Allure.step(Allure.java:112)
>         at 
> org.gridgain.ai3tests.tests.UpdateTests.updateTableWithConditionThatHasLinkedInnerSubQueries(UpdateTests.java:147)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>         at java.base/java.lang.Thread.run(Thread.java:834) {code}



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

Reply via email to