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

Master's agent draining VLOG prints incorrect task counts.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1, 1.10.0
    • master
    • None

    Description

      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

        // 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;
        }
      

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

      Attachments

        Activity

          People

            bmahler Benjamin Mahler
            bmahler Benjamin Mahler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: