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

Slave http endpoint can crash the slave when no master is detected.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16.0
    • Fix Version/s: 0.16.0
    • Component/s: agent
    • Labels:
      None

      Description

      This code assumes the master Result is not none:

      Future<Response> Slave::Http::state(const Request& request)
      {
      Try<string> masterHostname = net::getHostname(slave.master.get().ip); // XXX Need to check slave.master first.
      if (masterHostname.isSome())

      { object.values["master_hostname"] = masterHostname.get(); }

      ...
      }

        Attachments

          Activity

            People

            • Assignee:
              bmahler Benjamin Mahler
              Reporter:
              bmahler Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: