-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add unit tests for reading JVM options files #52176
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
Add unit tests for reading JVM options files #52176
Conversation
This commit adds some unit tests to cover the reading of JVM options files.
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
Outdated
Show resolved
Hide resolved
...n/tools/launchers/src/test/java/org/elasticsearch/tools/launchers/JvmOptionsParserTests.java
Show resolved
Hide resolved
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.
Couple comments regarding improving some assertion messages, otherwise LGTM.
...n/tools/launchers/src/test/java/org/elasticsearch/tools/launchers/JvmOptionsParserTests.java
Outdated
Show resolved
Hide resolved
...n/tools/launchers/src/test/java/org/elasticsearch/tools/launchers/JvmOptionsParserTests.java
Outdated
Show resolved
Hide resolved
|
||
if (esJavaOpts != null) { | ||
jvmOptions.addAll( | ||
Arrays.stream(esJavaOpts.split("\\s+")).filter(Predicate.not(String::isBlank)).collect(Collectors.toUnmodifiableList()) |
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.
Maybe?
for (String opt : esJavaOpts.split("\\s+")) {
if (opt.isBlank() == false) {
jvmOptions.add(opt);
}
}
There is an open issue for the test that failed here: #52223. Triggering another run. @elasticmachine run elasticsearch-ci/1 |
This commit adds some unit tests to cover the reading of JVM options files.
This commit adds some unit tests to cover the reading of JVM options files.