-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Unrecognized VM option 'UseConcMarkSweepGC' on OpenJDK 15 #51361
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
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
Probably related to: #51335 :) |
This is because:
We use to have it in the build that when we started the BWC cluster, we would use a version of the JDK that the version that we were starting was known to be compatible with. I think that when starting older clusters, we should use the bundled JDK overriding the runtime JDK. That's what we need here, and in general, so that we are only starting clusters against versions of the JDK that the version being started supports. Can you investigate making this change @mark-vieira? |
Agreed. In fact we have an open issue to use the configured bundled JDK version for all integration testing (except Java matrix tests).
We don't have a notion of maximum runtime Java version defined in an easily consumable way that I'm aware of. In any case, when we fetch BWC versions from a archive distribution we don't have any kind of metadata here either. I suppose we can hardcode this, which is probably fine given we only have to go back 1 major version and moving forward we always rely on using the bundled JDK. I'll work up a solution here. |
That brings us to #43071 so it’s only that we never implemented this for testclusters.
We use to have this, but hard coded into the build as you suggest. It was never pretty to maintain. At some point we moved to using some content out of |
Yeah, that PR you mentioned got blown away with the migration to test clusters and it seems we reintroduced the "just use whatever runtime java is" logic. I'm working up a PR for this. I'm not too worried about maintenance. We only have to consider all current active BWC versions < 7.2, which we know to work on Java 13. I don't suspect we'll ever have to change this as going forward we won't introduce any new versions that don't also include a bundled JDK. |
As well as the problem of 7.x being BWC tested against older versions that don't support Java 15, there is also the problem that we appear to be using Java 15 in CI builds for branches older than 7.x. For example, https://gradle-enterprise.elastic.co/s/mp33jqizng4l2 is a 7.5 branch build that tried to use Java 15 and failed because |
Good catch. Yes, as per Jason's comment we should not be testing |
@mark-vieira not sure, but this failure from today on 7.6 might be related still https://gradle-enterprise.elastic.co/s/asqniuub2yzlm |
This is also from this morning on 7.6, maybe related https://gradle-enterprise.elastic.co/s/3g43ngv3tvm2w/console-log?task=:qa:verify-version-constants:v7.5.3%23integTest |
This has not been backported to |
This should be sorted out now that #51505 has been backported. |
Just updated two instances of ES on different machines (with exact same system and OpenJDK versions though). One on 7.9.1, working fine, one on 7.9.2, having this exact issue reporting the unrecognized VM option. |
FYI I'm hitting this on OpenJDK 11 now:
Everything was working fine on new builds (executed weekly) until yesterday. Related: #62716 |
I commented this GC configuration directives in "/etc/elasticsearch/jvm.options" and it works for me but I am not sure if this is the right thing to do. GC configuration#-XX:+UseConcMarkSweepGC ES version: { Java version: openjdk 11.0.8 2020-07-14 LTS |
Did the same it works, but I'm not that confident. Here my java version
|
Same here. Updated my CentOS 7 server today and ran into the same issue. Tip from @ahantoiu worked for me as well.
|
I encountered the same problem (CentOS 7, elasticsearch 7.9.2). I made some research and found this elastic-disscusion.
with
in my jvm.options file. After that, elastic-service ist starting without problems. In Elastic 7.9.2 the bundled JDK was upgraded to version 15. You can see this in the Pull-Request linked to the discussion link. Hope this helps. |
Just had to do the same, has anyone run into problems yet? |
Same issue. CentOS 7 /usr/share/elasticsearch/jdk/bin/java -version : openjdk version "14.0.1" 2020-04-14 I downgraded to 7.9.1 to solve the issue. Why issue has been closed ? |
also having this issue after doing a yum update commented the lines in /etc/elasticsearch/jvm.options out and it starts now. |
Elasticsearch ships a JVM options file. We might update this between releases. If you bring along your old one and don't merge it properly with the new one we ship, then you might have options in there from an older version of the JVM that are no longer supported on newer versions of the JVM. We haven't shipped with this flag in our default options file since 7.7.0, and it's not in the packages we are shipping now. If it's in your options file, you need to remove it, we can't do it for you. |
@abcqwertz my environment:
|
Node failed to boot because
UseConcMarkSweepGC
isn't supported, presumably because it was removed in OpenJDK 15?https://gradle-enterprise.elastic.co/s/kloq36r7j4e3w
The text was updated successfully, but these errors were encountered: