-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEST BUG: MergeSchedulerSettingsTests fails always on small machines #559
TEST BUG: MergeSchedulerSettingsTests fails always on small machines #559
Conversation
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>
✅ Gradle Wrapper Validation success 09d6b3d |
✅ DCO Check Passed 09d6b3d |
✅ Gradle Precommit success 09d6b3d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! LGTM!
start gradle check |
start dco check |
✅ Gradle Wrapper Validation success 09d6b3d |
✅ DCO Check Passed 09d6b3d |
✅ Gradle Precommit success 09d6b3d |
MergeSchedulerSettingsTests tweaks the
node.processors
setting: sets it explicitly to values of2
and8
.On a machine with only
4
threads (e.g. my 2-core thinkpad), the test fails, because it creates unexpected warnings aboutnode.processors
being set higher than the number of cpus.The problem can be reproduced always, by pretending to be single core:
Instead, allow the test to provoke these specific warnings.
Signed-off-by: Robert Muir rmuir@apache.org