-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
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 |
Hello Martijn, Based on your suggestion, I did try the following Upstream OpenJdk 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, |
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? |
Hello @karianna , Are there any updates for this issue as it's halting my migration efforts from Oracle Jdk to AdoptJdk? Thanks, |
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. |
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, |
Apologies for the delay as I haven't been able to test the suggestion. I will be updating soon regarding it. |
Hi Java version: Cassandra: |
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? |
Hi I am encountering the same issues.
@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 🙏 |
hs_err_pid1620.log |
Adding to top priority so we shift build chains this quarter if we can find the right folks. |
@d3r3kk Do you intend to work on it? Is there anything we can do to help? |
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. |
It is sigar 1.6.4 bug. |
@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. |
OK, it's not a AdoptOpenJDK bug. The sigar bug affects latest windows 64 + openjdk (both Oracle JDK). |
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
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.
The text was updated successfully, but these errors were encountered: