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 production warning for pre-release builds #20674

Merged
merged 2 commits into from
Sep 28, 2016
Merged

Add production warning for pre-release builds #20674

merged 2 commits into from
Sep 28, 2016

Conversation

jasontedor
Copy link
Member

This commit adds a usage warning when Elasticsearch is started with a
pre-release build.

This commit adds a usage warning when Elasticsearch is started with a
pre-release build.
Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

I'm not sure folks are going to read this but we may as well.

@@ -313,6 +313,10 @@ public String toString() {
return sb.toString();
}

public String displayVersion() {
Copy link
Member

Choose a reason for hiding this comment

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

I foresee being confused about whether we should use this or toString. Maybe we should just use toString in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nik9000 Version#toString does not display whether or not the build is a snapshot build; I'm happy to add Javadocs?

Copy link
Member

Choose a reason for hiding this comment

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

Ah! I see the static reference now. I think this method is fairly confusing then? Like, it looks like it is just about the version that you are calling it on but it does stuff with the current build.

Copy link
Member Author

@jasontedor jasontedor Sep 27, 2016

Choose a reason for hiding this comment

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

I pushed 0fce68d, I think this will remove the confusion.

This commit moves Version#displayVersion to Node as the method is rather
confusing on Version since it relies on a reference to an instance of
Version but a static reference to the build.
@jasontedor jasontedor merged commit 3c8ff45 into elastic:master Sep 28, 2016
@jasontedor jasontedor deleted the pre-release-warn branch September 28, 2016 00:13
jasontedor added a commit that referenced this pull request Sep 28, 2016
This commit adds a usage warning when Elasticsearch is started with a
pre-release build.

Relates #20674
jasontedor added a commit that referenced this pull request Sep 28, 2016
This commit adds a usage warning when Elasticsearch is started with a
pre-release build.

Relates #20674
@jasontedor
Copy link
Member Author

Thanks @nik9000.

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

Successfully merging this pull request may close these issues.

None yet

3 participants