
In 2.0.0 the complete distribution will be built with JDK 11, and tested with the bundled JDK 17. Furthermore, given that Java 8 support ends in March 2022, OpenSearch 2.0 will drop support for JDK 8.
#Openjdk 15 download upgrade#
OpenSearch 2.0 will upgrade Lucene to 9.0, which requires JDK 11 or newer. The environment setting propagates to plugins that launch Java processes, such as performance-analyzer.

This can be useful for systems with multiple applications co-located with different JVMs, or in migration scenarios with several instances of OpenSearch running on the same machine. OpenSearch 1.3.0 is also introducing support for a new environment variable OPENSEARCH_JAVA_HOME that takes precedence over JAVA_HOME. If JAVA_HOME is not set, OpenSearch will try to fallback to the bundled JVM runtime if available. Customizing the OpenSearch Runtimeīy default, any OpenSearch distribution consults JAVA_HOME first in order to find out the Java runtime to run on. Engineers decided to downgrade to JDK 11 in OpenSearch#2301, and deferred upgrading to JDK 17 to 2.0.0 via opensearch-plugins#129. Originally, there was a plan to upgrade the bundled JDK to 17 in this version, but the team ran into a number of issues.
#Openjdk 15 download code#
The source and target Java versions were lowered back to 8 in OpenSearch#2321 and any incompatible code in the engine and plugins was fixed. The implementation in OpenSearch engine was OpenSearch#940, and was followed by plugins, e.g. The parent issues for this change were opensearch-build#64 and opensearch-build#74. All components build and test with JDK 8, 11, and 14. In 1.3.0 JDK 14 was replaced with a LTS version 11 for both builds and releases. Various individual components were built and tested individually with JDK 14. The complete distribution of OpenSearch 1.0 through 1.2.4 was built with JDK 14, and tested with the bundled JDK 15. Finally, while OpenSearch was claiming compatibility with JDK 8, CI didn’t include tests with that version for most plugins, nor were they actually built to target JDK8 in most components. Then, the complete distribution is rebuilt from source, and tested with the bundled JDK.

Both the engine, and each plugin, are built and tested with a range of JDKs (a subset of 8, 11 LTS, 14, 15, and 17), across multiple operating systems (Linux, Windows, FreeBSD, and MacOS). The OpenSearch distribution is comprised of the engine and a dozen plugins. This, however, doesn’t tell the whole story. LTS releases of JDKs focus on stability, therefore you can expect future versions of OpenSearch to always default to bundling a LTS JDK. This change was primarily driven by the fact that JDK 11 is a Long-Term Support (LTS) release, and JDK 15 is not. At the time of the fork OpenSearch inherited bundling OpenJDK 15, and eight releases have used AdoptOpenJDK 15.0.1+9 as the default runtime, replaced with Adoptium (Temurin) 11.0.14.1+1 in OpenSearch 1.3.0.
