You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2019/03/23 19:36:10 UTC

[Solr Wiki] Update of "SolrJavaVersions" by ErickErickson

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrJavaVersions" page has been changed by ErickErickson:
https://wiki.apache.org/solr/SolrJavaVersions

Comment:
Started a straw-man page for codifying what we know.

New page:
= Solr and Lucene and Java Versions =
{{{#!wiki warning
'''Warning'''
This page is under construction, until it is finalized you should check statements made here with the community, either the Solr or Lucene user's lists are a good place to check.
}}}

There is considerable confusion about "which version of Java should I use with what version of Lucene/Solr". Adding to the confusion is:
 * Oracle's Java 8 is End of Life, and soon Java 8 support from Oracle will require paid subscriptions. It's important to understand that Oracle's Java 8 will still be available, just not supported by Oracle for free and updates will require a subscription.
 * Oracle is moving to a paid support model
 * There are multiple sources of Java
 * There are different versions of Lucene/Solr with different minimal versions of Java required.

This page summarizes our (the Lucene/Solr community) current understanding.

== Overview ==

=== OpenJDK or Oracle ===
For Lucene and Solr, these are identical. Oracle's paid version of Java has two differences from OpenJDK:
 * Oracle provides support
 * Oracle's version has some features not available in OpenJDK

The extra features available from Oracle's version of Java are not used by Lucene or Solr. So for the purposes of the Apache Solr and Lucene projects.

=== Other Java suppliers ===
There are various other versions of Java available. Lucene and Solr do not regularly test with other versions so you'll have to validate those independently if you wish to use them. Here's a useful source to help decide: [[https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244|Java Champions]]

/!\ :TODO: /!\ At least one person commented on SOLR-12809, how/should we include testimonials like:
 * A real-world case - Solr 6.6.2 works fine on Amazon Corretto 8 (no-cost supported until at least June 2023, which does matter in commercial deployments).

=== List of known issues ===
We try to maintain a list of know Java issues at: [[https://wiki.apache.org/lucene-java/JavaBugs|Java Bugs]]

== Lucene and Solr testing ==
Lucene and Solr have extensive unit tests. These tests are regularly run against the various versions of Java.

=== How we test ===
Solr and Lucene run a continuous integration model. There is ''always'' testing going on against various versions of Java. In addition, some organizations also run their own continuous integration testing and feed back their results to the community.

We do not maintain this testing infrastructure across older versions once a new major version is released. Taking the current state (March, 2019).
 * Lucene/Solr 8.0 has just been released.
 * master (the future 9.0) is tested across multiple Java versions, 8, 9, 10, 11, 12 and 13. Should we decide to require Java 11 for 9.0+, testing with Java 8, 9, and 10 will stop.
 * 8x (the current development branch of Lucene/Solr 8) is tested on Java 8, 9, 10, 11, 12 and 13.
  * Once a point release is made (say Lucene/Solr 8.1), regular testing on the previous point release (8.0 in this example) will stop.
 * 7x is not tested regularly. If there is ever cause to release a new 7x version, that release will be tested during the release process. Note: there will only be a new 7x "point release" if there are critical bugs discovered or serious security holes.
 * 6x and earlier. As 7x, but with much lower likelihood of a new release.

/!\ :TODO: /!\ Is this next fair? Especially the bit about skipping 9 and 10.
Java 8 has had, by far, the most "real world" testing, but it is EoL. Java 11 is preferred over Java 9 or 10. Java 11 has been released for over 2 years and will likely have the most ongoing support when compared to Java 9 or 10.

Java 12 GA release was in mid March, 2019. Some Lucene/Solr versions have been tested regularly with Java 12 early releases, but there isn't long a track record of testing the GA release.

You'll see that Java 13 is tested. This is typical, the Lucene/Solr testing infrastructure tests pre-releases long before the GA is available. By the time a version of Java is released, Lucene/Solr has tested with it for months at minimum and fed back any concerns to the Java developers.

/!\ :TODO: /!\  There were comments at one point about whether 9 and 10 were important enough to spend much energy on. Let's elaborate on this or not mention it at all.

== Lucene/Solr and Java Versions ==
Below is a summary of what we know. As a general statement, the success rate in our automated tests is similar with all the below versions.


=== Lucene/Solr 5 ===
 * Requires Java 7+
 * Hadoop will not work with Java 9 or greater.
 /!\ :TODO: /!\ How much testing did we do with 8, 9, 10, 11? Proposal: Note that Java 11 GA didn't have a lot of overlap here, so Java 8 is more extensively tested.

 /!\ :TODO: /!\ what about Kerberos issues and Java 9+?


=== Lucene/Solr 6 ===
 * Requires Java 8+
 * Hadoop will not work with Java 9 or greater.
 /!\ :TODO: /!\ How much testing did we do with 9, 10, 11? Proposal: Just note that this was tested with Java versions through Java 11 extensively.

 /!\ :TODO: /!\ what about Kerberos issues and Java 9+?


=== Lucene/Solr 7 ===
 * Requires Java 8+
 * Hadoop will not work with Java 9 or greater.
 /!\ :TODO: /!\ How much testing did we do with 9, 10, 11, 12? In this case lots, although almost all of the Java 12 testing was with pre-GA versions.

 /!\ :TODO: /!\ what about Kerberos issues and Java 9+?

=== Lucene/Solr 8 ===
 * Requires Java 8+
 * This version has continuous testing with Java 9, 10, 11, 12 and 13. Note: Java 13 is in the very early stages of development as of this writing.
 /!\ :TODO: /!\ what about Kerberos issues and Java 9+? (I think they're taken care of in 8x)


=== Lucene/Solr 9 ===
NOTE: This is the current "master" and has not yet been released as of March, 2019. No date has been proposed, but typically major releases are 1-2 years apart.
 * Requires Java 11 (proposed)
 * If you want to understand the current state of Lucene/Solr 9, you should subscribe to the developer's list or search the JIRA system for mentions of Lucene/Solr 9 issues.