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

Matthias Baesken mbaesken at openjdk.org
Mon Sep 16 12:39:05 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` for files in the `<slice>.d` directory. Both of which should ensure the test runs more reliably.
> 
> Testing:
> - [ ] GHA
> - [x] Manual testing by creating the directory first, running the test. Failed. The same handshake passes after the patch.
> 
> Thanks!

Sorry I thought for some reason I have to add the username.  When called as you said I get some more output 


$ systemctl status user@$(id -u).service
× user at 1000.service - User Manager for UID 1000
     Loaded: loaded (/lib/systemd/system/user at .service; static)
    Drop-In: /usr/lib/systemd/system/user at .service.d
             └─timeout.conf
     Active: failed (Result: signal) since Sun 2024-09-15 18:00:07 CEST; 20h ago
       Docs: man:user at .service(5)
    Process: 31303 ExecStart=/lib/systemd/systemd --user (code=killed, signal=KILL)
   Main PID: 31303 (code=killed, signal=KILL)
     Status: "Startup finished in 239ms."
        CPU: 110ms

Sep 15 18:00:06 mymachine systemd[31303]: Listening on GnuPG cryptographic agent and passphrase >
Sep 15 18:00:06 mymachine systemd[31303]: Listening on GnuPG cryptographic agent (ssh-agent emul>
Sep 15 18:00:06 mymachine systemd[31303]: Listening on GnuPG cryptographic agent and passphrase >
Sep 15 18:00:06 mymachine systemd[31303]: Listening on debconf communication socket.
Sep 15 18:00:06 mymachine systemd[31303]: Listening on REST API socket for snapd user session ag>
Sep 15 18:00:06 mymachine systemd[31303]: Listening on D-Bus User Message Bus Socket.
Sep 15 18:00:06 mymachine systemd[31303]: Reached target Sockets.
Sep 15 18:00:06 mymachine systemd[31303]: Reached target Basic System.
Sep 15 18:00:06 mymachine systemd[31303]: Reached target Main User Target.
Sep 15 18:00:06 mymachine systemd[31303]: Startup finished in 239ms.

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

PR Comment: https://git.openjdk.org/jdk/pull/20989#issuecomment-2352798665


More information about the hotspot-runtime-dev mailing list