Moving to Java 8?

Hey,

looking at the Oracle JDK road map, the end of public updates for JDK 7
comes closer, it will be in April 2015.

http://www.oracle.com/technetwork/java/eol-135779.html#Java6-end-public-updates

Lucene already started to test Java 9 and is finding issues like this

https://issues.apache.org/jira/browse/LUCENE-6169

Now my question is, when will Elasticsearch switch to Java 8? I know it
already runs on Java 8 but I mean Java 8 as the minimum requirement for
source and target code of the compiler.

Best,

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Jorg,

I’ve personally been using Java 8 with ES for a while. Although I can’t say when we’ll stop support for Java 7, as you can see from our support matrix recent versions of ES are supported on Java 8.

http://www.elasticsearch.com/support/matrix http://www.elasticsearch.com/support/matrix

Cheers,
Andrew

On Jan 21, 2015, at 3:08 PM, joergprante@gmail.com wrote:

Hey,

looking at the Oracle JDK road map, the end of public updates for JDK 7 comes closer, it will be in April 2015.

Oracle Java SE Support Roadmap http://www.oracle.com/technetwork/java/eol-135779.html#Java6-end-public-updates

Lucene already started to test Java 9 and is finding issues like this

[LUCENE-6169] Recent Java 9 commit breaks fsync on directory - ASF JIRA https://issues.apache.org/jira/browse/LUCENE-6169

Now my question is, when will Elasticsearch switch to Java 8? I know it already runs on Java 8 but I mean Java 8 as the minimum requirement for source and target code of the compiler.

Best,

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com.
For more options, visit https://groups.google.com/d/optout.

No, that is not what I mean. I do not mean JVM support.

I mean compiler support for the source. Switching to lambda expressions,
streams, etc. - there is no version of ES that supports this.

Jörg

On Thu, Jan 22, 2015 at 2:52 AM, Andrew Selden <
andrew.selden@elasticsearch.com> wrote:

Hi Jorg,

I’ve personally been using Java 8 with ES for a while. Although I can’t
say when we’ll stop support for Java 7, as you can see from our support
matrix recent versions of ES are supported on Java 8.

http://www.elasticsearch.com/support/matrix

Cheers,
Andrew

On Jan 21, 2015, at 3:08 PM, joergprante@gmail.com wrote:

Hey,

looking at the Oracle JDK road map, the end of public updates for JDK 7
comes closer, it will be in April 2015.

Oracle Java SE Support Roadmap

Lucene already started to test Java 9 and is finding issues like this

[LUCENE-6169] Recent Java 9 commit breaks fsync on directory - ASF JIRA

Now my question is, when will Elasticsearch switch to Java 8? I know it
already runs on Java 8 but I mean Java 8 as the minimum requirement for
source and target code of the compiler.

Best,

Jörg

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com
https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFA89_FdqKWyQMNCiMMEdBkCH%3DBVPRCcEP2nvDgonRgHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

You should be able to access es from java 8 source code. Most collection
classes will support streams already and lambdas and you can use lambdas in
many places where you would use inner classes otherwise. I suspect, a full
switch to java 8 might take some time for big projects such as
elasticsearch as it is kind of disruptive. Java 6 support was only
discontinued quite recently, I believe.

I've been using java 8 for a few months but we don't use the elasticsearch
internal API. We also run elasticsearch on Oracle java 8 without issues.

Jilles

On Thursday, January 22, 2015 at 9:50:38 AM UTC+1, Jörg Prante wrote:

No, that is not what I mean. I do not mean JVM support.

I mean compiler support for the source. Switching to lambda expressions,
streams, etc. - there is no version of ES that supports this.

Jörg

On Thu, Jan 22, 2015 at 2:52 AM, Andrew Selden <
andrew...@elasticsearch.com <javascript:>> wrote:

Hi Jorg,

I’ve personally been using Java 8 with ES for a while. Although I can’t
say when we’ll stop support for Java 7, as you can see from our support
matrix recent versions of ES are supported on Java 8.

http://www.elasticsearch.com/support/matrix

Cheers,
Andrew

On Jan 21, 2015, at 3:08 PM, joerg...@gmail.com <javascript:> wrote:

Hey,

looking at the Oracle JDK road map, the end of public updates for JDK 7
comes closer, it will be in April 2015.

Oracle Java SE Support Roadmap

Lucene already started to test Java 9 and is finding issues like this

[LUCENE-6169] Recent Java 9 commit breaks fsync on directory - ASF JIRA

Now my question is, when will Elasticsearch switch to Java 8? I know it
already runs on Java 8 but I mean Java 8 as the minimum requirement for
source and target code of the compiler.

Best,

Jörg

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com
https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4eed0446-4e16-436e-a7c2-d3d63431ac4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

It need not to be disruptive, Lucene trunk (6.x) already moved to Java 8,
while older branches (4.x, 5.x) are on Java 7.

Jörg

On Thu, Jan 22, 2015 at 11:44 AM, Jilles van Gurp jillesvangurp@gmail.com
wrote:

You should be able to access es from java 8 source code. Most collection
classes will support streams already and lambdas and you can use lambdas in
many places where you would use inner classes otherwise. I suspect, a full
switch to java 8 might take some time for big projects such as
elasticsearch as it is kind of disruptive. Java 6 support was only
discontinued quite recently, I believe.

I've been using java 8 for a few months but we don't use the elasticsearch
internal API. We also run elasticsearch on Oracle java 8 without issues.

Jilles

On Thursday, January 22, 2015 at 9:50:38 AM UTC+1, Jörg Prante wrote:

No, that is not what I mean. I do not mean JVM support.

I mean compiler support for the source. Switching to lambda expressions,
streams, etc. - there is no version of ES that supports this.

Jörg

On Thu, Jan 22, 2015 at 2:52 AM, Andrew Selden <andrew...@elasticsearch.
com> wrote:

Hi Jorg,

I’ve personally been using Java 8 with ES for a while. Although I can’t
say when we’ll stop support for Java 7, as you can see from our support
matrix recent versions of ES are supported on Java 8.

http://www.elasticsearch.com/support/matrix

Cheers,
Andrew

On Jan 21, 2015, at 3:08 PM, joerg...@gmail.com wrote:

Hey,

looking at the Oracle JDK road map, the end of public updates for JDK 7
comes closer, it will be in April 2015.

http://www.oracle.com/technetwork/java/eol-135779.
html#Java6-end-public-updates

Lucene already started to test Java 9 and is finding issues like this

[LUCENE-6169] Recent Java 9 commit breaks fsync on directory - ASF JIRA

Now my question is, when will Elasticsearch switch to Java 8? I know it
already runs on Java 8 but I mean Java 8 as the minimum requirement for
source and target code of the compiler.

Best,

Jörg

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%
2B9xPKL0aEw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9Hcdm3_%2BbgBf-m8zHskZ_bMvGiB3ODKYx%2B9xPKL0aEw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%
40elasticsearch.com
https://groups.google.com/d/msgid/elasticsearch/CFB72C3B-F0E5-4EBE-ABD5-D7D11CBA1AE9%40elasticsearch.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4eed0446-4e16-436e-a7c2-d3d63431ac4f%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/4eed0446-4e16-436e-a7c2-d3d63431ac4f%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEpQcWNGfi4NrZ7tx-HruwX96PY%2BS8EvUhY_vqhzD0hRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.