Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8643

`os::system` and `os::spawn` returns -1 on valid windows commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • None

    Description

      `os::system` and `os::spawn` return the process exit code or -1 on failure. However, on Windows, -1 is a valid exit code (e.g. `os::system("exit -1")). This can cause spurious aborts by Mesos when a process, e.g. Docker, exits with -1 (expectedly) but Mesos thinks it failed to launch. It's impossible to distinguish a failure from a process returning -1, so those calls need to return something like a `Try<int>` or `Option<int>` to distinguish the error case. 

      Attachments

        Activity

          People

            akagup Akash Gupta
            akagup Akash Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: