mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
bdb7aade9a
MergeSchedulerSettingsTests tweaks the `node.processors` setting: sets it explicitly to values of `2` and `8`. On a machine with only `4` threads (e.g. my 2-core thinkpad), the test fails, because it creates unexpected warnings about `node.processors` being set higher than the number of cpus. The problem can be reproduced always, by pretending to be single core: ``` ./gradlew ':server:test' --tests "org.opensearch.index.MergeSchedulerSettingsTests.testMaxThreadAndMergeCount" -Dtests.jvm.argline="-XX:ActiveProcessorCount=1" ``` Instead, allow the test to provoke these specific warnings. Signed-off-by: Robert Muir <rmuir@apache.org>