Skip to content
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 early-access check #23743

Merged
merged 3 commits into from
Mar 24, 2017
Merged

Conversation

jasontedor
Copy link
Member

@jasontedor jasontedor commented Mar 24, 2017

The OpenJDK project provides early-access builds of upcoming releases. These early-access builds are not suitable for production. These builds sometimes end up on systems due to aggressive packaging (e.g., Ubuntu). This commit adds a bootstrap check to ensure these early-access builds are not being used in production.

Relates #23668

The OpenJDK project provides early-access builds of upcoming
releases. These early-access builds are not suitable for
production. These builds sometimes end up on systems due to aggressive
packaging (e.g., Ubuntu). This commit adds a bootstrap check to ensure
these early-access builds are not being used in production.
Copy link

@abeyad abeyad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a nit and a question

return javaVersion.endsWith("-ea");
} else {
return false;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: return "Oracle Corporation".equals(jvmVendor()) && javaVersion().endsWith("-ea") more succinct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed 6cf944e.

@@ -560,12 +560,48 @@ private void runMightForkTest(
consumer.accept(e);
}

public void testEarlyAccessCheck() throws NodeValidationException {
final AtomicReference<String> javaVersion
= new AtomicReference<>(randomFrom("1.8.0_152-ea", "9-ea"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be an AtomicReference?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I set it to a different value further down in the method to simulate a check where the Java version is not an early-access build.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++, i didn't realize it was just one instance of the EarlyAccessCheck

@jasontedor jasontedor merged commit a6c4234 into elastic:master Mar 24, 2017
jasontedor added a commit that referenced this pull request Mar 24, 2017
The OpenJDK project provides early-access builds of upcoming
releases. These early-access builds are not suitable for
production. These builds sometimes end up on systems due to aggressive
packaging (e.g., Ubuntu). This commit adds a bootstrap check to ensure
these early-access builds are not being used in production.

Relates #23743
@jasontedor jasontedor deleted the early-access-check branch March 24, 2017 18:54
@jasontedor
Copy link
Member Author

Thanks @abeyad.

sudo-suhas pushed a commit to sudo-suhas/elasticsearch that referenced this pull request Mar 27, 2017
The OpenJDK project provides early-access builds of upcoming
releases. These early-access builds are not suitable for
production. These builds sometimes end up on systems due to aggressive
packaging (e.g., Ubuntu). This commit adds a bootstrap check to ensure
these early-access builds are not being used in production.

Relates elastic#23743
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Jun 10, 2017
The OpenJDK project provides early-access builds of upcoming
releases. These early-access builds are not suitable for
production. These builds sometimes end up on systems due to aggressive
packaging (e.g., Ubuntu). This commit adds a bootstrap check to ensure
these early-access builds are not being used in production.

Relates elastic#23743
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants