`jdk/crac/ContainerPidAdjustmentTest.java` assumes that `/proc/sys/kernel/pid_max` is 4194304 which is not always true. E.g. it was initially observed to not be so on some WSL Ubuntu distributions (hence the bug name) and in general this property is configurable.
When the above assumption fails the whole test fails with a message like this:
```
[COMMAND]
docker exec crac-test3304 bash -c useradd the_user && echo 4194200 >/proc/sys/kernel/ns_last_pid
[2025-01-10T13:28:45.519143797Z] Gathering output for process 9194
[ELAPSED: 48 ms]
[STDERR]
bash: line 1: echo: write error: Invalid argument
```
When the above assumption fails the whole test fails with a message like this:
```
[COMMAND]
docker exec crac-test3304 bash -c useradd the_user && echo 4194200 >/proc/sys/kernel/ns_last_pid
[2025-01-10T13:28:45.519143797Z] Gathering output for process 9194
[ELAPSED: 48 ms]
[STDERR]
bash: line 1: echo: write error: Invalid argument
```
- links to
-
Commit(crac) openjdk/crac/45afd381
-
Review(crac) openjdk/crac/179