RFR: 8374322: TestMemoryWithSubgroups.java fails Permission denied [v3]

David Holmes dholmes at openjdk.org
Tue Jan 6 09:09:03 UTC 2026


On Tue, 6 Jan 2026 07:39:19 GMT, SendaoYan <syan at openjdk.org> wrote:

>> Hi all,
>> 
>> Test containers/docker/TestMemoryWithSubgroups.java fails on some docker images. If the default user inside docker is non root user, test will report fails "mkdir: cannot create directory '/sys/fs/cgroup/memory': Permission denied". This PR add docker run parameter `--user root` to force use root user inside docker containter.
>> 
>> Change has been verified locally on ubuntu22(cgroup v2). Test-fix only, no risk.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add --user root when start docker container

test/hotspot/jtreg/containers/docker/TestMemoryWithSubgroups.java line 2:

> 1: /*
> 2:  * Copyright (C) 2025, 2026, BELLSOFT. All rights reserved.

Unless you work for Bellsoft, or have been requested by them to update their copyright then you should not modify it. Thanks

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28975#discussion_r2664194350


More information about the hotspot-runtime-dev mailing list