Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1BFE2200C3E for ; Tue, 21 Mar 2017 19:30:20 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1A7CA160B81; Tue, 21 Mar 2017 18:30:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 395EF160B6E for ; Tue, 21 Mar 2017 19:30:19 +0100 (CET) Received: (qmail 90696 invoked by uid 500); 21 Mar 2017 18:30:14 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 90360 invoked by uid 99); 21 Mar 2017 18:30:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2017 18:30:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id ACABBC002B for ; Tue, 21 Mar 2017 18:30:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MZ_TiYSIxkMM for ; Tue, 21 Mar 2017 18:30:11 +0000 (UTC) Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 646155FB40 for ; Tue, 21 Mar 2017 18:30:10 +0000 (UTC) Received: by mail-qt0-f172.google.com with SMTP id r45so137606251qte.3 for ; Tue, 21 Mar 2017 11:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NtfXK7ub5uETn6by7A4kGpDxuPTCVfJ0tpZ9ZbNJ8ts=; b=mnEPbvdPvMieC0VJFmO6KJVTVLV326wXD6vG80WzPD9yTu8CEenTknTvxAReIKwZ8S ZRqClOHlr8soAFdJyJ4G4wwgHvqrnUwXHOd1yIyOC35fxAEvGBsQ8Qud8GxwjJpvEWRO 3MY8KE1LHvxy29dUr5jZzFF1td58IrzHSWDL12h7TJbmAwsfjmhT16MZtQn0DigSIMY7 a2wDKy3AtmQIWU6nT23ry38GmySIPVKIYmwbQV1DYOKeYkAx8uoJJa0IcB+pgx5A2kc+ LXd7emwstszaVsE0GBpvIqCLnv6heqwzM440AMflkyE5eUFYgwNvz6eSjatKxx2FrLbb aZ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NtfXK7ub5uETn6by7A4kGpDxuPTCVfJ0tpZ9ZbNJ8ts=; b=GJvB20+IH8w61iwRJz7M908qw3q72qk4hMXNtKTlMnynpH4FDcb4s5U33INQY1CWKg UJ7IMVVeWVRu5SKF3NLZ2t1vMN2k9ee0OHODrvFJ+LaUWLr01S9aJwmTik3sSRcEZvOx IeNbZYAOiP6O1qdEbKfyJ8TjKAWlICbFRZ9TZKuCrTr1j99tDfIy6+OClAEisGnuvMvU 8CLTfhGJhnMNZrcp6XbCrJf7xlQovpBPvn3UlCZ8ckA0WhiNY4w67US+YDDY34aKBTR3 NjPgCPb2s38mO4tip+syTBoeJWMNfqCIQHgWWqn0DvfwMooxR3rjf+ytF0PQPi9B3Ulv BnPA== X-Gm-Message-State: AFeK/H2J72xKg6g+6SRzMmO051Y04aFtBk1njaFJGP4qppEh4hBKaM17UqwloXrgIUK+HVT10U5yCGwAPoRoeg== X-Received: by 10.237.48.37 with SMTP id 34mr16950315qte.117.1490119549843; Tue, 21 Mar 2017 11:05:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.38.143 with HTTP; Tue, 21 Mar 2017 11:05:49 -0700 (PDT) In-Reply-To: References: <8199DD25-985D-4F03-AC8C-7EFAF316A127@apache.org> <35D39810-A2F8-4CDC-BAF6-588FA580F005@apache.org> <27BAD8DF-A755-45E9-A7CD-0A89B60B782A@apache.org> From: Evgenii Zhuravlev Date: Tue, 21 Mar 2017 21:05:49 +0300 Message-ID: Subject: Re: Should we take care of Java 9 in Ignite 2.0 scope? To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c0c9bbe70fece054b417ea6 archived-at: Tue, 21 Mar 2017 18:30:20 -0000 --94eb2c0c9bbe70fece054b417ea6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Denis, I've found that some internal classes like sun.misc.SharedSecrets, sun.misc.URLClassPath, sun.misc.PerfCounter, sun.misc.Cleaner changed their packages. I can create wrapper for this classes with 2 modules, that can be enabled by profiles for java9 and java7-8. For using internal classes that not exported by default, we will need to add new args(--add-exports) when compiling (javac) *and* when running (java ). Is it ok? Also, there are a two different Unsafe classes in java 9 - sun.misc.Unsafe & jdk.internal.misc.Unsafe, but both of them doesn't have monitorEnter & monitorExit methods, that we use in org.apache.ignite.internal.util.GridUnsafe. What should I do with this case= ? 2017-03-21 11:21 GMT+03:00 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0= =96=D1=83=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=B2 : > Denis, > > I found some recommendations on openjdk wiki: > https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+Analysis+Tool > > 2017-03-20 20:44 GMT+03:00 Denis Magda : > >> Referring to your report only the following API was removed completely. >> The rest is still deprecated and stowed in special JDK 9 modules. >> >> >> "org.apache.ignite.internal.processors.hadoop.HadoopClassLoader" -> >> "sun.misc.PerfCounter (JDK internal API (JDK removed internal API))=E2= =80=9D; >> >> >> "org.apache.ignite.internal.processors.platform.memory.PlatformMemory= Pool" >> -> "sun.misc.Cleaner (JDK internal API (JDK removed internal API))=E2=80= =9D; >> >> "org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientW= orker" >> -> "sun.misc.Cleaner (JDK internal API (JDK removed internal API))"; >> >> >> "org.apache.ignite.internal.processors.rest.protocols.GridRestProtocolAd= apter" >> -> "sun.misc.BASE64Encoder (JDK internal API (JDK removed internal API))= =E2=80=9D; >> >> "org.apache.ignite.internal.util.IgniteUtils" -> >> "sun.misc.JavaNetAccess (JDK internal API (JDK removed internal API))=E2= =80=9D; >> >> >> "org.apache.ignite.internal.util.IgniteUtils" -> >> "sun.misc.SharedSecrets (JDK internal API (JDK removed internal API))=E2= =80=9D; >> >> >> "org.apache.ignite.internal.util.IgniteUtils" -> >> "sun.misc.URLClassPath (JDK internal API (JDK removed internal API))=E2= =80=9D; >> >> >> >> *Evgeniy*, does Oracle officially suggest replacements for deleted APIs? >> Probably it=E2=80=99s a matter of day to do a switch. >> >> >> =E2=80=94 >> Denis >> >> > On Mar 20, 2017, at 9:57 AM, =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0= =B9 =D0=96=D1=83=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=B2 >> wrote: >> > >> > Igniters, >> > >> > There are a few JDK internal APIs removed in JDK 9, that we use in >> ignite. We need to decide what to do with these dependencies. Here is a >> list of dependencies after using jdeps >> > >> > 2017-01-26 12:07 GMT+03:00 Anton Vinogradov > >: >> > Denis, >> > >> > I've created issue > https://issues.apache.org/jira/browse/IGNITE-4615>> related >> > to discussion. >> > We have a lot of legacy code inside pom.xml files. One of legacy issue= s >> is >> > a tools.jar usage. >> > So, it will be nice to fix this as well. >> > >> > On Thu, Jan 26, 2017 at 2:54 AM, Denis Magda > > wrote: >> > >> > > Well, the build fails almost immediately on the latest JDK 9. >> > > >> > > This is the reason (https://issues.jenkins-ci.org >> /browse/JENKINS-25993 > >). >> > > >> > > [ERROR] Failed to execute goal on project ignite-tools: Could not >> resolve >> > > dependencies for project org.apache.ignite:ignite-tools >> :jar:2.0.0-SNAPSHOT: >> > > Could not find artifact com.sun:tools:jar:9-ea at specified path >> > > /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/.. >> /lib/tools.jar >> > > -> [Help 1] >> > > >> > > >> > > If to tweak pom files cleaning out references to tools.jar then othe= r >> > > exceptions arise. >> > > >> > > *Anton V*, could try to build the master on your side applying all t= he >> > > required changes to pom files? I don=E2=80=99t think I=E2=80=99ll do= everything >> correctly. >> > > If the build goes through at least with minor modifications then thi= s >> would >> > > be a good sign. >> > > >> > > =E2=80=94 >> > > Denis >> > > >> > > >> > > On Jan 25, 2017, at 3:22 PM, Denis Magda > dmagda@apache.org>> wrote: >> > > >> > > Vovan, >> > > >> > > As far as I understand, under the module they mean new >> component/feature >> > > of Java 9 [1]. If you don=E2=80=99t use Java modules then there shou= ldn=E2=80=99t be >> any >> > > issues at all. >> > > >> > > In any case, let me try to build the project with JDK 9 that has >> passed >> > > feature complete phase. >> > > >> > > [1] http://openjdk.java.net/projects/jigsaw/spec/sotms/#defining >> -modules > g-modules> < >> > > http://openjdk.java.net/projects/jigsaw/spec/sotms/#defining-modules >> > >> > > >> > > =E2=80=94 >> > > Denis >> > > >> > > On Jan 25, 2017, at 5:47 AM, Vladimir Ozerov > > wrote: >> > > >> > > Igniters, >> > > >> > > Please see this article [1] from Kotlin guys. They had to re-pack >> public >> > > API because Java 9 doesn't allow several modules to share the same >> public >> > > package. Looks like this limitation could impact us at some point, s= o >> that >> > > we will not be able to support Java 9 without breaking API changes. >> > > >> > > May be it makes sense to perform some initial investigation of Java = 9 >> > > impact before AI 2.0 release, so that we can minimize (or at least >> > > estimate) potential future impact? >> > > >> > > Vladimir. >> > > >> > > [1] >> > > https://blog.jetbrains.com/kotlin/2017/01/kotlin-1-1- < >> https://blog.jetbrains.com/kotlin/2017/01/kotlin-1-1-> >> > > whats-coming-in-the-standard-library/ >> > > >> > > >> > > >> > > >> > >> >> > --94eb2c0c9bbe70fece054b417ea6--