i submitted a PR for this. turns out I was using a slightly older openjdk 8
when this issue occurred. not sure if openjdk8 latest version resolves the
issue or not. i will get the details. but my fix takes care of it regardless.
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Gian Merlino <g...@apache.org> Date:
11/2/19 13:59 (GMT-05:00) To: dev@druid.apache.org Subject: Re: Release
0.16.0-incubating not running properly on OpenJDK 8 or 11 - segments become
unavailable Hi Tony,Druid doesn't fully support Java 11 today — we're working
towards it butthere are issues to work through related to 'unofficial' APIs we
need forByteBuffers and Cleaners, as well as issues with dependencies
likeDataSketches and Hadoop. We've updated our docs recently to reflect
it:https://druid.apache.org/docs/latest/tutorials/index.html (note the "Java8"
requirement currently called out).I'm surprised to hear you had issues on
OpenJDK 8 though. I am using anOpenJDK variant personally (Corretto v.
8.212.04.2; base OpenJDK version1.8.0_212) as are many other Druid developers I
know. We also use OpenJDKfor our automated tests and lots of people use it in
production. It isconsidered fully supported.To help get to the bottom of it:
what version specifically of OpenJDK areyou using, what version of Druid were
you trying to build (was it a releaseor a git checkout?) and what commands did
you run?On Sat, Nov 2, 2019 at 10:49 AM <t...@xfire.io> wrote:> Does anyone use
druid on openjdk? Is openjdk supported? I can't get> druid to work on openjdk
without this fix. I'm a little concerned about> the production readiness of
this product on openjdk. should I be?>> I will get this PR submitted, but it's
quite simple, I was hoping an> active druid developer would pick this up as an
obvious need.>> Tony>> On 2019-11-01 13:47, Jad Naous wrote:>> > Hi Tony, thank
you for doing this! It would be really helpful if you can> > open a PR with the
change so we can review it!> >> > On Fri, Nov 1, 2019 at 9:50 AM Tony Schwartz
<tonyschwa...@gmail.com>> wrote:> >> > Yes, I was able to build the project now
with my recommended code change> > and it works fine. Can someone please look
into making this change? So> > far, it's the only issue I've run into with
OpenJDK.> >> > Thank you,> >> > Tony Schwartz> >> > On Fri, Nov 1, 2019 at
11:34 AM Tony Schwartz <tonyschwa...@gmail.com>> > wrote:> >> > The app fails
to hand off the segments to the "historical" coordinator> (or whatever it's
called) so all my segments become immediately unavailable.> > On the 2 versions
of the latest OpenJDK (8 and 11) on which I've tried> > this, I get the same
issue. What I believe is happening can be fixed> with a code change to:
DruidCoordinator.java @line 690. the instance inner> > class
CoordinatorHistoricalManagerRunnable has a constructor that is> > referencing
DruidCoordinator.this prior to the super(...) constructor> being invoked. This
causes a failure. A work-around is to pass the> coordinator instance to the
constructor:> > CoordinatorHistoricalManagerRunnable(final DruidCoordinator c,
final int> > startingLeaderCounter)> > and then, reference c instead of
DruidCoordinator.this throughout that> > constructor method. You can probably
make this a static inner class at> > that point, although I haven't analyzed it
that far.> >> > The exception that shows up in the coordinator-overlord.log
is:> > 2019-10-31T16:23:02,953 ERROR> >
[LeaderSelector[/druid/coordinator/_COORDINATOR]]> >
org.apache.curator.framework.listen.ListenerContainer - Listener> >
(org.apache.druid.curator.discovery.CuratorDruidLeaderSelector$1@1e7d3d87> )
threw an exception> > java.lang.ClassFormatError: Illegal field name> >
"org.apache.druid.server.coordinator.DruidCoordinator$this" in class> >> >>
org/apache/druid/server/coordinator/DruidCoordinator$CoordinatorHistoricalManagerRunnable>>
>> > I have tried to make this change myself and to test it, but I am unable>
to build the project due to rat licensing issues. Also, when I don't run> rat
via the mvn build, i get another error: gpg: signing failed: No> pinentry> >
..> > [ERROR] Failed to execute goal> >
org.apache.maven.plugins:maven-gpg-plugin:1.6:sign> (sign-release-artifacts) on
project druid: Exit code: 2 -> [Help 1]> >> >
---------------------------------------------------------------------> > To
unsubscribe, e-mail: dev-unsubscr...@druid.apache.org> > For additional
commands, e-mail: dev-h...@druid.apache.org