-
Notifications
You must be signed in to change notification settings - Fork 231
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
8254001: [Metrics] Enhance parsing of cgroup interface files for version detection #1020
Conversation
Hi @andrewazores, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user andrewazores" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
This backport pull request has now been updated with issue from the original commit. |
/covered |
Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
@robilad Hi! Could you please help with OCA verification for Andrew? He works for Red Hat and is covered by Red Hat's OCA. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once change required due to an out-of-order backport to 11u.
} | ||
selfCgroupLines.map(line -> line.split(":")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have to also include the fix from JDK-8272124 so that not regress. See: openjdk/jdk@4d6593c
It'll be covered by TestCgroupSubsystemFactory
once JDK-8284102, a 11u-only bug, gets fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so rather than backporting the whole 8272124 I should just cherry-pick out that single fix to this file for inclusion in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. JDK-8272124 is in 11u since 11.0.13
. The backported fix was adapted and got adapted again with the initial cgroups v2 support patch in java.base
. Basically we need to keep the code handling extra colons :) Before this patch it was done here:
https://github.com/openjdk/jdk11u-dev/pull/1020/files#diff-463442e0351f5129ca93998b61b6ab5edb7f95e71092069e44e516d9180ea160L111-L117
Partial backport of commit 4d6593ce0243457e7431a5990957a8f880e0a3fb, fixing an NPE that can occur in cgroupv1 initialization when cgroup path contains a colon. Related test is not included since it will be covered later by JDK-8284102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Hopefully we'll get the OCA verification resolved soon.
@robilad Gentle ping? |
@andrewazores This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 75 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jerboaa) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@andrewazores OCA is now approved. Please request for approval in the bug. See step 6 in: https://wiki.openjdk.java.net/display/JDKUpdates/How+to+contribute+a+fix |
Hi, can you please enable the GHA actions and Pre-submit tests for this repo so they run next time? Thanks |
Hi @GoeLin , I have enabled Actions on my fork. Is there a way to trigger the tests to run now? |
/integrate |
@andrewazores |
/sponsor |
Going to push as commit 9c10f3e.
Your commit was automatically rebased without conflicts. |
Force pushing to the branch. It's OK though. We've tested it as part of #1056 (a dependent PR which includes your patch). |
@jerboaa @andrewazores Pushed as commit 9c10f3e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Backport commit a50725db2ab621e1a17cb5505f78e4bc73972a27 for JDK-8254001, enhancement to cgroups interface parsing and version detection.
The patch applied mostly cleanly with only two minor conflicts in
CgroupV1Subsystem.java
. These conflicts were simply hunks that failed to apply because the surrounding context did not match due to later changes in the internal implementation that are not present in JDK11. Since the patch being backported wholly replaces or removes these implementations anyway, my resolution was to simply remove the old implementation and accept the new implementation from the backport patch.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk11u-dev pull/1020/head:pull/1020
$ git checkout pull/1020
Update a local copy of the PR:
$ git checkout pull/1020
$ git pull https://git.openjdk.java.net/jdk11u-dev pull/1020/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1020
View PR using the GUI difftool:
$ git pr show -t 1020
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk11u-dev/pull/1020.diff