JDK-8200248 : [TESTBUG] PlainRead test checks cgroups reads, the negative path when not in cgroup is problematic.
Type:Bug
Component:hotspot
Sub-Component:runtime
Affected Version:11
Priority:P4
Status:Closed
Resolution:Duplicate
Submitted:2018-03-26
Updated:2018-06-12
Resolved:2018-06-12
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The negative path, e.g. not in a cgroup is problematic since there can be different log messages and thus is not working and that test part is mostly useless.
Comments
A fix of this is part of 8203357 which is out for review.
08-06-2018
Suggested fix is:
diff -r c9d5786ed296 test/hotspot/jtreg/runtime/containers/cgroup/PlainRead.java
--- a/test/hotspot/jtreg/runtime/containers/cgroup/PlainRead.java Mon Mar 19 09:45:20 2018 +0100
+++ b/test/hotspot/jtreg/runtime/containers/cgroup/PlainRead.java Wed Mar 21 08:27:05 2018 +0100
@@ -63,4 +62,0 @@
- static public void isNotContainer(OutputAnalyzer oa) {
- oa.shouldMatch("^.*Can't open /proc/self/mountinfo.*$");
- }
-
@@ -75,3 +70,0 @@
- } else {
- System.out.println("Not in a cgroup, testing...");
- isNotContainer(output);