diff --git a/x-pack/plugin/security/build.gradle b/x-pack/plugin/security/build.gradle index a398b0940a2..0e197fad070 100644 --- a/x-pack/plugin/security/build.gradle +++ b/x-pack/plugin/security/build.gradle @@ -472,6 +472,14 @@ if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_1_8) { ) } +test { + /* + * We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each + * other if we allow them to set the number of available processors as it's set-once in Netty. + */ + systemProperty 'es.set.netty.runtime.available.processors', 'false' +} + internalClusterTest { /* * We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SimpleSecurityNetty4ServerTransportTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SimpleSecurityNetty4ServerTransportTests.java index a5cf60f3d2d..4df0d39cb50 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SimpleSecurityNetty4ServerTransportTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SimpleSecurityNetty4ServerTransportTests.java @@ -5,7 +5,6 @@ */ package org.elasticsearch.xpack.security.transport.netty4; -import org.apache.lucene.util.LuceneTestCase.AwaitsFix; import org.elasticsearch.Version; import org.elasticsearch.action.ActionListener; import org.elasticsearch.cluster.node.DiscoveryNode; @@ -23,7 +22,6 @@ import org.elasticsearch.xpack.security.transport.AbstractSimpleSecurityTranspor import java.util.Collections; -@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/62298") public class SimpleSecurityNetty4ServerTransportTests extends AbstractSimpleSecurityTransportTestCase { @Override