[ https://issues.apache.org/jira/browse/IGNITE-21641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822643#comment-17822643 ]
Mikhail Efremov commented on IGNITE-21641: ------------------------------------------ The main suspect there is while(true) loop, that is a separated issue, and delete-upsert-read chain that produces large a row versions chain. !image-2024-03-01-20-36-08-577.png! So, the solution may be for the one hand to restrict loop's iterations count or set a timeout for a test, and for another hand is to figure out what's wrong with delete-upsert-read. The flags case is: insertFirst=true, upsertAfterDelete=true, committed=true, multiple=false. The reason may be in the if (row == null) {} statement. > OOM in PartitionReplicaListenerTest > ----------------------------------- > > Key: IGNITE-21641 > URL: https://issues.apache.org/jira/browse/IGNITE-21641 > Project: Ignite > Issue Type: Bug > Reporter: Mirza Aliev > Priority: Major > Labels: ignite-3 > Attachments: image-2024-03-01-12-22-32-053.png, > image-2024-03-01-20-36-08-577.png > > > TC run failed with OOM > Problem occurred after > PartitionReplicaListenerTest.testReadOnlyGetAfterRowRewrite run, > {noformat} > [2024-03-01T05:12:50,629][INFO ][Test worker][PartitionReplicaListenerTest] > >>> Starting test: > PartitionReplicaListenerTest#testReadOnlyGetAfterRowRewrite, displayName: > [14] true, true, false, true > [2024-03-01T05:12:50,629][INFO ][Test worker][PartitionReplicaListenerTest] > workDir: > build/work/PartitionReplicaListenerTest/testReadOnlyGetAfterRowRewrite_33496469368142283 > [2024-03-01T05:12:50,638][INFO ][Test worker][PartitionReplicaListenerTest] > >>> Stopping test: > PartitionReplicaListenerTest#testReadOnlyGetAfterRowRewrite, displayName: > [14] true, true, false, true, cost: 8ms. > [05:12:50] : [testReadOnlyGetAfterRowRewrite(boolean, > boolean, boolean, boolean)] > org.apache.ignite.internal.table.distributed.replication.PartitionReplicaListenerTest.testReadOnlyGetAfterRowRewrite([15] > true, true, true, false) (10m:22s) > [05:12:50] : [:ignite-table:test] PartitionReplicaListenerTest > > testReadOnlyGetAfterRowRewrite(boolean, boolean, boolean, boolean) > [15] > true, true, true, false STANDARD_OUT > [05:12:50] : [:ignite-table:test] > [2024-03-01T05:12:50,648][INFO ][Test worker][PartitionReplicaListenerTest] > >>> Starting test: > PartitionReplicaListenerTest#testReadOnlyGetAfterRowRewrite, displayName: > [15] true, true, true, false > [05:12:50] : [:ignite-table:test] > [2024-03-01T05:12:50,648][INFO ][Test worker][PartitionReplicaListenerTest] > workDir: > build/work/PartitionReplicaListenerTest/testReadOnlyGetAfterRowRewrite_33496469386328241 > [05:18:42] : [:ignite-table:test] java.lang.OutOfMemoryError: Java > heap space > [05:18:42] : [:ignite-table:test] Dumping heap to > java_pid2349600.hprof ... > [05:19:06] : [:ignite-table:test] Heap dump file created > [3645526743 bytes in 24.038 secs] > {noformat} > https://ci.ignite.apache.org/buildConfiguration/ApacheIgnite3xGradle_Test_RunAllTests/7898564?hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandCode+Inspection=true&expandBuildProblemsSection=true&expandBuildChangesSection=true&expandBuildDeploymentsSection=false > After analysing heap dump it appears that the reason of OOM is a problem with > Mockito. > !image-2024-03-01-12-22-32-053.png! > We need to investigate the reason of a problem with Mockito -- This message was sent by Atlassian Jira (v8.20.10#820010)