Add Missing Netty Runtime Proc Property to Security Tests (#62846) (#62890)

Same as in the normal Netty tests we have to disable the runtime proc
setting in the normal tests task just like we do for the internal cluster tests.

Closes #61919
Closes #62298
This commit is contained in:
Armin Braun 2020-09-24 20:48:38 +02:00 committed by GitHub
parent 78a93dc18f
commit 4b9ddb48b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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 { internalClusterTest {
/* /*
* We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each * We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each

View File

@ -5,7 +5,6 @@
*/ */
package org.elasticsearch.xpack.security.transport.netty4; package org.elasticsearch.xpack.security.transport.netty4;
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
import org.elasticsearch.Version; import org.elasticsearch.Version;
import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.ActionListener;
import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.cluster.node.DiscoveryNode;
@ -23,7 +22,6 @@ import org.elasticsearch.xpack.security.transport.AbstractSimpleSecurityTranspor
import java.util.Collections; import java.util.Collections;
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/62298")
public class SimpleSecurityNetty4ServerTransportTests extends AbstractSimpleSecurityTransportTestCase { public class SimpleSecurityNetty4ServerTransportTests extends AbstractSimpleSecurityTransportTestCase {
@Override @Override