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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 11.0.4.Final, 12.0.0.Dev05, 12.1.1.Final
    • 13.0.0.Dev01
    • Server
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: