Skip to content

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

Merged
merged 5 commits into from
Feb 12, 2020

Conversation

jasontedor
Copy link
Member

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.
@jasontedor jasontedor added >test Issues or PRs that are addressing/adding tests :Delivery/Build Build or test infrastructure v8.0.0 v7.7.0 labels Feb 11, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

Copy link
Contributor

@mark-vieira mark-vieira left a 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.


if (esJavaOpts != null) {
jvmOptions.addAll(
Arrays.stream(esJavaOpts.split("\\s+")).filter(Predicate.not(String::isBlank)).collect(Collectors.toUnmodifiableList())
Copy link
Contributor

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);
    }
}

@jasontedor
Copy link
Member Author

There is an open issue for the test that failed here: #52223. Triggering another run.

@elasticmachine run elasticsearch-ci/1

@jasontedor jasontedor merged commit 1199ae5 into elastic:master Feb 12, 2020
jasontedor added a commit that referenced this pull request Feb 12, 2020
This commit adds some unit tests to cover the reading of JVM options
files.
@jasontedor jasontedor deleted the read-jvm-options-files-tests branch February 12, 2020 02:02
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants