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

Lower Java version to 11 for OpenSearch 1.3.0. #981

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

dblock
Copy link
Member

@dblock dblock commented Nov 17, 2021

Signed-off-by: dblock [email protected]

Description

We've lowered the JDK for OpenSearch to 11 in opensearch-project/OpenSearch#940.

Issues Resolved

Part of #74.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock dblock requested review from saratvemulapalli and a team November 17, 2021 15:50
@codecov-commenter
Copy link

Codecov Report

Merging #981 (aaad4fb) into main (d095963) will increase coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #981      +/-   ##
==========================================
+ Coverage   92.78%   92.95%   +0.16%     
==========================================
  Files          89       89              
  Lines        2385     2385              
==========================================
+ Hits         2213     2217       +4     
+ Misses        172      168       -4     
Impacted Files Coverage Δ
src/system/process.py 100.00% <0.00%> (+7.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d095963...aaad4fb. Read the comment docs.

ci:
image:
name: "opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028"
args: "-e JAVA_HOME=/opt/java/openjdk-11"
Copy link
Member

Choose a reason for hiding this comment

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

Does this change the integration test environment jdk too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Does not today. Because we have never run any automation for integration tests currently it would use whatever JAVA_HOME you have on your machine. When we put that into Jenkins, we'll need to decide what to use. Note that it sort of doesn't matter because you're deploying an OpenSearch cluster with the JVM packaged inside OpenSearch, so if we wanted to test OpenSearch with multiple JVMs, you'd need to produce distributions with different versions of the bundled JVM or swap the JVM before starting any test cluster.

Copy link
Member

Choose a reason for hiding this comment

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

Note; this is a great example of why I like the integration tests that start up a cluster to be coupled to the build process.. if that is a good enough trade-off is still up for debate.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. One way is to have no-jdk distribution and a jdk matrix to run integration test against.

ci:
image:
name: "opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028"
args: "-e JAVA_HOME=/opt/java/openjdk-11"
Copy link
Member

Choose a reason for hiding this comment

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

Note; this is a great example of why I like the integration tests that start up a cluster to be coupled to the build process.. if that is a good enough trade-off is still up for debate.

@dblock dblock merged commit db3a5a5 into opensearch-project:main Nov 17, 2021
@dblock dblock deleted the opensearch-1.3.0-java-11 branch November 17, 2021 17:13
@dblock
Copy link
Member Author

dblock commented Nov 17, 2021

cc: @reta

@reta
Copy link
Contributor

reta commented Nov 17, 2021

This is awesome, thanks @dblock ! 👍 👍 👍

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

Successfully merging this pull request may close these issues.

5 participants