Skip to content

Commit bf084b5

Browse files
authored
IGNITE-26249 Reduce direct memory consumption in ItNodeTest (#7430)
1 parent 1b38938 commit bf084b5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

modules/raft/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,9 @@ dependencies {
119119
integrationTestImplementation libs.dropwizard.metrics
120120
integrationTestImplementation libs.disruptor
121121
}
122+
123+
tasks.named('integrationTest').configure {
124+
// Default allocator in Netty 4.2.+ consumes too much direct memory, which breaks some tests in this module, so we use the default
125+
// value from older versions.
126+
jvmArgs += '-Dio.netty.allocator.type=pooled'
127+
}

modules/raft/src/integrationTest/java/org/apache/ignite/raft/jraft/core/ItNodeTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
import org.junit.jupiter.api.extension.ExtendWith;
179179

180180
/**
181-
* Integration tests for raft cluster. TODO asch get rid of sleeps wherether possible IGNITE-14832
181+
* Integration tests for raft cluster. TODO asch get rid of sleeps wherever possible IGNITE-14832
182182
*/
183183
@ExtendWith(WorkDirectoryExtension.class)
184184
public class ItNodeTest extends BaseIgniteAbstractTest {
@@ -4152,7 +4152,6 @@ private Future<?> startChangePeersAndLearnersThread(ChangeArg arg) {
41524152
});
41534153
}
41544154

4155-
@Disabled("https://issues.apache.org/jira/browse/IGNITE-26249")
41564155
@Test
41574156
public void testChangePeersAndLearnersChaosWithSnapshot() throws Exception {
41584157
// start cluster
@@ -4199,7 +4198,6 @@ public void testChangePeersAndLearnersChaosWithSnapshot() throws Exception {
41994198
}
42004199

42014200
@Test
4202-
@Disabled("https://issues.apache.org/jira/browse/IGNITE-26249")
42034201
public void testChangePeersAndLearnersChaosWithoutSnapshot() throws Exception {
42044202
// start cluster
42054203
List<TestPeer> peers = new ArrayList<>();
@@ -4247,7 +4245,6 @@ public void testChangePeersAndLearnersChaosWithoutSnapshot() throws Exception {
42474245
}
42484246

42494247
@Test
4250-
@Disabled("https://issues.apache.org/jira/browse/IGNITE-26249")
42514248
public void testChangePeersAndLearnersChaosApplyTasks() throws Exception {
42524249
// start cluster
42534250
List<TestPeer> peers = new ArrayList<>();

0 commit comments

Comments
 (0)