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
8278951: containers/cgroup/PlainRead.java fails on Ubuntu 21.10 #7043
8278951: containers/cgroup/PlainRead.java fails on Ubuntu 21.10 #7043
Conversation
|
@iklam 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 25 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.
|
Looks fine to me.
Note: I first wondered whether we needed to handle a OSCONTAINER_ERROR
value in CgroupV2Subsystem::cpu_shares()
but we don't as in that case the function returns early (-2
) and CgroupSubsystem::active_processor_count()
handles negative values appropriately.
Going to push as commit 35172cd.
Your commit was automatically rebased without conflicts. |
When running on Ubuntu 21.10 (which has cgroupv2 enabled by default) but outside of a container, the VM was printing only this:
After my fix, this is also printed to make the PlainRead.java test happy:
Note that the
GET_CONTAINER_INFO_CPTR
andGET_CONTAINER_INFO_LINE
macros still don't print the trace log when the requested file doesn't exist. I don't know whether I should change them or not. Since no tests seem to look for such a such a log message, I'll leave the code as-is for now.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7043/head:pull/7043
$ git checkout pull/7043
Update a local copy of the PR:
$ git checkout pull/7043
$ git pull https://git.openjdk.java.net/jdk pull/7043/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7043
View PR using the GUI difftool:
$ git pr show -t 7043
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7043.diff