Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cassandra 3.11.4 doesn't startup with AdoptOpenJDK build 25.222-b10 #30

Closed
NitishBangera opened this issue Aug 13, 2019 · 20 comments
Closed
Assignees
Milestone

Comments

@NitishBangera
Copy link

  • Browser:

My Java version is the following

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

I am in the process of evaluating AdoptOpenJdk so that my company moves away from Oracle's Jdk. All my java apps have been working fine but Cassandra 3.11.4 has been giving me issues during startup.

Issues

  1. The jna-4.2.2.jar which comes bundled doesn't creates the dll. When its upgraded to jna-4.5.2.jar then the jna works fine.
  2. On startup, the JVM crashes with the following error
# JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-b10)
# Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [sigar-amd64-winnt.dll+0x14ed4]

I do understand that its outside the JVM but as soon as I shift to the following Oracle's jdk, cassandra starts up pretty fine without issues and I am able to do all the functionalities.
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

I am on hold for the migration due to this issue.

@karianna karianna transferred this issue from AdoptOpenJDK/openjdk-website Aug 13, 2019
@karianna
Copy link
Contributor

Are you able to try the Upstream OpenJDK? adoptopenjdk.net/upstream.html

Let's see if this is a broad OpenJDK issue or just Adopt's

@NitishBangera
Copy link
Author

Hello Martijn,

Based on your suggestion, I did try the following Upstream OpenJdk
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

To be very specific, I set the JAVA_HOME within the start script so that cassandra uses the appropriate jdk and validated it from the cassandra logs as well. Cassandra started up pretty fine and worked pretty well. So it seems that its mainly an issue with AdoptOpenJdk only.

Thanks,
Nitish

@karianna
Copy link
Contributor

Thanks that'll help a little.

@ali-ince Can I get you to look at the DLL etc versions between the two variants and see where we might differ?

@NitishBangera
Copy link
Author

Hello @karianna ,

Are there any updates for this issue as it's halting my migration efforts from Oracle Jdk to AdoptJdk?

Thanks,
Nitish

@ali-ince
Copy link

Hi @NitishBangera,

Could you please try the resolution mentioned at adoptium/temurin-build#1126 (comment)? Please consider the architecture of your operating system while picking the version of redistributable to install.

Thanks.

@NitishBangera
Copy link
Author

Hello @ali-ince,

Thank you for the update. I will be trying your suggestion on windows 10 pro as well as the server os which is Centos 7 and updating this thread.

Thanks,
Nitish

@NitishBangera
Copy link
Author

Apologies for the delay as I haven't been able to test the suggestion. I will be updating soon regarding it.

@amanda-lee-ansys
Copy link

Hi
I have the same issue here. I am working on migration from Oracle Jdk to AdoptJdk and wanna get rid of all the VS2010 dependencies. Therefore, the solution @ali-ince mentioned does not work for me.

Java version:
adoptOpenJDK 8u222

Cassandra:
tried 3.11.2 and 3.11.4, but both failed.

@NitishBangera
Copy link
Author

Hello @ali-ince, @karianna

I would like to echo what @amanda-lee-ansys has mentioned as well. Even I do not want to depend on VS2010 dependencies. Can you please share some other suggestions to solve this issue?

@cindypodski
Copy link

@karianna @ali-ince - any suggestions for the VS2010 dependencies problem we are encountering? VS2010 extended support ends in July 2020.

@NitishBangera
Copy link
Author

@ali-ince @karianna Can you please share some updates?

@sxa
Copy link
Member

sxa commented Dec 4, 2019

I would expect that we will be moving up to VS2017 for the JDK8 builds at some point int he next couple of releases.

@ali-ince @karianna anything to add?

@sxa sxa transferred this issue from adoptium/temurin-build Dec 6, 2019
@ye
Copy link

ye commented Jan 21, 2020

Hi I am encountering the same issues.

Windows 10 Pro (Version 10.0.18363 Build 18363) x64-based PC
Apache Cassandra 3.11.4 (and 3.11.5)
OpenJDK Runtime Environment (AdoptOpenJDK)(Build 1.8.0_232_b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK build 25.232-b09, mixed mode)

@NitishBangera how do you upgrade the pre-bundled jna-4.2.2.jar to to 4.5.2? Or Where did you find the Windows x64 installer for upstream OpenJDK? Thanks 🙏

@lehelsipos
Copy link

lehelsipos commented Apr 9, 2020

hs_err_pid1620.log
I have the same problem!
cassandra_java_error

@karianna
Copy link
Contributor

karianna commented Apr 9, 2020

Adding to top priority so we shift build chains this quarter if we can find the right folks.

@aahlenst
Copy link
Contributor

aahlenst commented Nov 7, 2020

@d3r3kk Do you intend to work on it? Is there anything we can do to help?

@aahlenst
Copy link
Contributor

While checking whether the problem persists with the latest versions (it does), I realized that the problem is yet again Sigar: #22.

Sigar (a pile of C code for monitoring purposes) has long been abandoned but is still being used by Cassandra, even in the Beta 3 of Cassandra 4. Sigar is compiled against VS 2008 and works with a JDK compiled with VS 2010 (for example, upstream builds). It crashes with every JDK built with a newer VS version. After a couple of fixes, I got Sigar to compile with VS 2017 but that did not help either.

@cnstar9988
Copy link

It is sigar 1.6.4 bug.

hyperic/sigar#141
cnstar9988/sigar@9e5dba8

@aahlenst
Copy link
Contributor

aahlenst commented Dec 10, 2020

@cnstar9988 Thank you for finding the problem with Sigar and sharing the DLL. Your patch and DLL seem to work fine. People might need the Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package to make Cassandra start with recent AdoptOpenJDK builds.

Because the problem is not in AdoptOpenJDK, I'm going to close the issue. Our findings have been reported to the Cassandra folks, please follow https://issues.apache.org/jira/browse/CASSANDRA-15950 (or any linked issues) for updates.

@karianna karianna added this to the December 2020 milestone Dec 10, 2020
@cnstar9988
Copy link

OK, it's not a AdoptOpenJDK bug.

The sigar bug affects latest windows 64 + openjdk (both Oracle JDK).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests