You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2014/01/29 04:46:08 UTC

[jira] [Created] (MESOS-954) The /__processes__ endpoint in libprocess is missing

Benjamin Mahler created MESOS-954:
-------------------------------------

             Summary: The /__processes__ endpoint in libprocess is missing 
                 Key: MESOS-954
                 URL: https://issues.apache.org/jira/browse/MESOS-954
             Project: Mesos
          Issue Type: Bug
          Components: libprocess
            Reporter: Benjamin Mahler


Looks like the processing of each event queue in __processes__ is lacking the needed lock acquisition:

Future<Response> ProcessManager::__processes__(const Request&)
{
  JSON::Array array;

  synchronized (processes) {
    foreachvalue (const ProcessBase* process, process_manager->processes) {
      ...  
      
      // XXX: This processes the event queue but does not lock process.
      foreach (Event* event, process->events) {
        event->visit(&visitor);
      }

      object.values["events"] = events;
      array.values.push_back(object);
    }
  }

  return OK(array);
}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)