Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12442

Fix ServerRunMode.FORKED driver process handling and add proper Windows OS support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0.0.Final
    • 11.0.4.Final, 12.0.0.Final, 12.1.1.Final
    • Server
    • None

      Using the driver in FORKED mode without a fix for ISPN-12385 uncovers numerous issues with how the processes are handled, e.g.:

      • the server process hangs when the output/error buffers are filled because they are never read nor redirected!
      • driver doesn't wait for the process to start
      • tail cannot be used to observe file changes as its *nix specific
      • server kill must call appropriate command for windows platform
      • log is only printed for first server
      • log is only printed before the server starts
      • pid cannot be obtained on Windows

      The solution for these is to use taskkill.exe with proper flags when appropriate, replace usage of tail with simply consuming the process output and printing it out in the log file. Solves the problem with handing process. In the error condition, employ jps from the JDK to find out the correct process.

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: