Igor created IGNITE-22348:
-----------------------------

             Summary: Storage aimem throws 'Replication is timed out' on batch 
insert
                 Key: IGNITE-22348
                 URL: https://issues.apache.org/jira/browse/IGNITE-22348
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 3.0.0-beta2
         Environment: Cluster of 2 nodes.

Storage engine - aimem.
            Reporter: Igor


*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