RFR: 8255908: ExceptionInInitializerError due to UncheckedIOException while initializing cgroupv1 subsystem [v2]
Severin Gehwolf
sgehwolf at openjdk.java.net
Fri Nov 20 09:13:02 UTC 2020
On Thu, 19 Nov 2020 20:49:07 GMT, Poonam Bajaj <poonam at openjdk.org> wrote:
>> Shouldn't you add a check in src/java.base/linux/classes/jdk/internal/platform/cgroupv2/CgroupV2Subsystem.java:sumTokensIOStat ?
>>
>> What about getLongEntry in src/java.base/linux/classes/jdk/internal/platform/CgroupSubsystemController.java? There are streams operations occuring there as well.
>
> @bobvandette sumTokensIOStat() and getLongEntry() should also have the catch blocks, and I have added those. Please review the latest commit.
@poonamparhar Wouldn't we be able to reproduce this by a test? E.g. `test/jdk/jdk/internal/platform/cgroup/TestCgroupSubsystemFactory.java` It should already be checking some of this with `mountInfoFileNotFound()` and `cgroupsFileNotFound()`. Thoughts?
-------------
PR: https://git.openjdk.java.net/jdk/pull/1303
More information about the core-libs-dev
mailing list