Benjamin Mahler created MESOS-10094:
---------------------------------------

             Summary: Master's agent draining VLOG prints incorrect task counts.
                 Key: MESOS-10094
                 URL: https://issues.apache.org/jira/browse/MESOS-10094
             Project: Mesos
          Issue Type: Bug
          Components: master
    Affects Versions: 1.9.0
            Reporter: Benjamin Mahler


This logic is printing the framework counts of these maps rather than the task 
counts:

https://github.com/apache/mesos/blob/4575c9b452c25f64e6c6cc3eddc12ed3b1f8538b/src/master/master.cpp#L6318-L6319

{code}
  // Check if the agent has any tasks running or operations pending.
  if (!slave->pendingTasks.empty() ||
      !slave->tasks.empty() ||
      !slave->operations.empty()) {
    VLOG(1)
      << "DRAINING Agent " << slaveId << " has "
      << slave->pendingTasks.size() << " pending tasks, "
      << slave->tasks.size() << " tasks, and "
      << slave->operations.size() << " operations";
    return;
  }
{code}

Since these are {{hashmap<FrameworkID, hashmap<TaskID, Task>>}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to