Integrated: 8340092: [Linux] containers/systemd/SystemdMemoryAwarenessTest.java failing on some systems

Severin Gehwolf sgehwolf at openjdk.org
Fri Sep 20 19:37:42 UTC 2024


On Fri, 13 Sep 2024 09:10:19 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Please review this trivial test fix. The test fails if the `<slice>.d` directory already exists (for some reason). It needs to exist for the test to work. But if it exists we ignore the failure, thus using `Files.createDirectories()`.
> 
> As a benefit I've also added `exclusiveAccess.dirs=.` to the `systemd` test directory to match container tests in `docker` folder and added `TRUNCATE_EXISTING` and `CREATE` open options for files in the `<slice>.d` directory. Both of which should ensure the test runs more reliably.
> 
> Testing:
> - [x] GHA
> - [x] Manual testing by creating the directory first, running the test. Failed. The same handshake passes after the patch. Similarly for the user manager service not being accessible (for some reason).
> 
> Thanks!

This pull request has now been integrated.

Changeset: 64275e6b
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/64275e6bbf1377c9a9d77fe3c3ed8d4143138f11
Stats:     49 lines in 2 files changed: 30 ins; 4 del; 15 mod

8340092: [Linux] containers/systemd/SystemdMemoryAwarenessTest.java failing on some systems

Reviewed-by: mbaesken

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

PR: https://git.openjdk.org/jdk/pull/20989


More information about the hotspot-runtime-dev mailing list