In regards to what we test:

We run our tests against Java 8 *and *Java 11, with the compilation and testing being done with the same JDK. In other words, we don't check whether Flink compiled with JDK 8 runs on JDK 11, but we currently have no reason to believe that there is a problem (and some anecdotal evidence to support this). Some tests are excluded from Java 11; some due to library incompatibility (e.g., Cassandra), some because our docker images are still using Java 8 (anything docker-related stuff is _not_ tested for Java 11, as are Yarn end-to-end tests), and some for currently unknown reasons (Kafka end-to-end test).

You _should_ be free to use any JDK 11 exclusive APIs within your code, but we haven't tested it specifically.

You don't have to re-compile Flink; the binary that we will be releasing should work on both Java 8 and 11.

Do note that we have not done any tests on JDK 12+.

On 10/01/2020 10:13, Krzysztof Chmielewski wrote:
Hi,
Thank you for your answer. Btw it seams that you send the replay only to my address and not to the mailing list :)

I'm looking forward to try out 1.10-rc then.

Regarding second thing you wrote, that
/"on Java 11, all the tests(including end to end tests) would be run with Java 11 profile now."/ I'm not sure if I get that fully. You meant that currently Flink builds are running on java 11?

I was not rebuilding Flink 1.9.1 sources with JDK 11. I just ran 1.9.1 build on JRE 11 locally on my machine and I also modify Job Cluster Dockerfile to use openjdk:13-jdk-alpine as a base image instead openjdk:8-jre-alpine.

Are here any users who are currently running Flink on Java 11 or higher? What are your experiences?

Thanks,

pt., 10 sty 2020 o 03:14 Yangze Guo <karma...@gmail.com <mailto:karma...@gmail.com>> napisał(a):

    Hi, Krzysztof

    Regarding the release-1.10, the community is now focus on this effort.
    I believe we will have our first release candidate soon.

    Regarding the issue when running Flink on Java 11, all the
    tests(including end to end tests) would be run with Java 11 profile
    now. If you meet any problem, feel free to open a new JIRA ticket or
    ask in user/dev ML.

    Best,
    Yangze Guo

    On Fri, Jan 10, 2020 at 1:11 AM KristoffSC
    <krzysiek.chmielew...@gmail.com
    <mailto:krzysiek.chmielew...@gmail.com>> wrote:
    >
    > Hi guys,
    > well We have requirement in our project to use Java 11, although
    we would
    > really like to use Flink because it seems to match our needs
    perfectly.
    >
    > We were testing it on java 1.8 and all looks fine.
    > We tried to run it on Java 11 and also looks fine, at least for now.
    >
    > We were also running this as a Job Cluster, and since those
    images [1] are
    > based on openjdk:8-jre-alpine we switch to java 13-jdk-alpine.
    Cluster
    > started and submitted the job. All seemed fine.
    >
    > The Job and 3rd party library that this job is using were
    compiled with Java
    > 11.
    > I was looking for any posts related to java 11 issues and I've
    found this
    > [2] one.
    > We are also aware of ongoing FLINK-10725 [3] but this is
    assigned to 1.10
    > FLink version
    >
    > Having all of this, I would like to ask few questions
    >
    > 1. Is there any release date planed for 1.10?
    > 2. Are you aware of any issues regarding running Flink on Java 11?
    > 3. If my Job code would not use any code features from java 11,
    would flink
    > handle it when running on java 11? Or they are some internal
    functionalities
    > that would not be working on Java 11 (things that are using
    unsafe or
    > reflections?)
    >
    > Thanks,
    > Krzysztof
    >
    >
    > [1]
    >
    
https://github.com/apache/flink/blob/release-1.9/flink-container/docker/README.md
    > [2]
    >
    
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/UnsupportedOperationException-from-org-apache-flink-shaded-asm6-org-objectweb-asm-ClassVisitor-visit1-td28571.html
    > [3] https://issues.apache.org/jira/browse/FLINK-10725
    >
    >
    >
    > --
    > Sent from:
    http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/


Reply via email to