Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347430

[CRaC] ContainerPidAdjustmentTest fails on WSL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-crac
    • repo-crac
    • core-libs
    • None
    • generic
    • linux

      `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
      ```

            tpushkin Timofei Pushkin
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: