Jenkins 2.7.4 seems to leave behind Java processes (on Windows agent) if the build is aborted/agent loses connection

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: core
    • Environment:
      Jenkins 2.7.4, Windows 7-10, Java 8

      We have a build step that runs a TestNG suite, with the command looking something like this:

      java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml
      

      If the process is aborted in any way (manual intervention, Jenkins build timeout, etc.) OR if the agent loses connection from the master long enough to fail the build, then there is a Java process left behind.

      This is particularly damaging to us, as we load a DLL in the Java process, locking the file handle. If we attempt the job again, we cannot load the DLL again, meaning that all future builds will fail without manual intervention (killing the leftover process manually).

      It is possible to reproduce with ANY java process executed on the Windows agent.

      This bug seems similar to JENKINS-26048, but I did not understand from the title/description if it was the same problem or similar symptoms. Feel free to close as duplicate if it is.

            Assignee:
            Unassigned
            Reporter:
            Greg Fraley
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: