[RORDEV-1940] Fix ES 8.0.x/8.1.x container startup crash caused by JDK 17.0.2 cgroup v2 bug #1214
Open
[RORDEV-1940] Fix ES 8.0.x/8.1.x container startup crash caused by JDK 17.0.2 cgroup v2 bug #1214
Conversation
This comment was marked as spam.
This comment was marked as spam.
mgoworko
requested changes
Feb 13, 2026
tests-utils/src/main/scala/tech/beshu/ror/utils/containers/images/Elasticsearch.scala
Outdated
Show resolved
Hide resolved
tests-utils/src/main/scala/tech/beshu/ror/utils/containers/images/Elasticsearch.scala
Show resolved
Hide resolved
tests-utils/src/main/scala/tech/beshu/ror/utils/containers/images/Elasticsearch.scala
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ES 8.0.x and 8.1.x bundle JDK 17.0.2 which has a cgroup v2 bug (JDK-8281181) that causes JvmOptionsParser to crash with a NullPointerException in CgroupV2Subsystem.getInstance() before the container starts. This happens on hosts with cgroup v2 (e.g., Ubuntu 24.04 CI agents) and cannot be worked around with JAVA_TOOL_OPTIONS since the NPE occurs before any JVM flags are processed. The fix replaces the bundled JDK in-place with Amazon Corretto 17.0.5.8.1 (the earliest version that works well) during Docker image build, only for affected ES versions. The tarball is downloaded once per JVM process and reused across all container builds.
Summary by CodeRabbit
Tests
Chores