8278102: containers/docker/TestJcmd.java failed with "RuntimeException: Could not find specified process"

Reviewed-by: kevinw, sgehwolf
This commit is contained in:
Ivan Bereziuk 2026-03-18 10:18:19 +00:00 committed by Severin Gehwolf
parent 3a93daf189
commit 9ef2e8dc1c
2 changed files with 2 additions and 7 deletions

View File

@ -117,7 +117,6 @@ runtime/NMT/VirtualAllocCommitMerge.java 8309698 linux-s390x
applications/jcstress/copy.java 8229852 linux-all
containers/docker/TestJcmd.java 8278102 linux-all
containers/docker/TestJFREvents.java 8327723 linux-x64
containers/docker/TestJcmdWithSideCar.java 8341518 linux-x64

View File

@ -170,14 +170,10 @@ public class TestJcmd {
opts.addDockerOpts("--volume", Utils.TEST_CLASSES + ":/test-classes/:z")
.addJavaOpts("-cp", "/test-classes/")
.addDockerOpts("--cap-add=SYS_PTRACE")
.addDockerOpts("--pull=never")
.addDockerOpts("--name", CONTAINER_NAME)
.addClassOptions("" + TIME_TO_RUN_CONTAINER_PROCESS);
if (IS_PODMAN && !ROOT_UID.equals(getId("-u"))) {
// map the current userid to the one in the target namespace
opts.addDockerOpts("--userns=keep-id");
}
// avoid large Xmx
opts.appendTestJavaOptions = false;
@ -186,7 +182,7 @@ public class TestJcmd {
return ProcessTools.startProcess("main-container-process",
pb,
line -> line.contains(EventGeneratorLoop.MAIN_METHOD_STARTED),
5, TimeUnit.SECONDS);
15, TimeUnit.SECONDS);
}