Disable setting available processors in tests
Within the same JVM, setting the number of processors available to Netty can only be done once. However, tests randomize the number of processors and so without intervention would attempt to set this value multiple times. Therefore, we need to use a flag that prevents setting this value in tests. Relates elastic/x-pack-elasticsearch#1266 Original commit: elastic/x-pack-elasticsearch@d127149725
This commit is contained in:
parent
a615532866
commit
718518fe85
|
@ -375,6 +375,22 @@ integTestCluster {
|
|||
}
|
||||
}
|
||||
|
||||
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'
|
||||
}
|
||||
|
||||
integTestRunner {
|
||||
/*
|
||||
* 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'
|
||||
}
|
||||
|
||||
// TODO: don't publish test artifacts just to run messy tests, fix the tests!
|
||||
// https://github.com/elastic/x-plugins/issues/724
|
||||
configurations {
|
||||
|
|
Loading…
Reference in New Issue