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

Destroyed executors might be used after `Slave::publishResource()`.

    XMLWordPrintableJSON

    Details

      Description

      In the following code from https://github.com/apache/mesos/blob/7b30b9ccd63dbcd3375e012dae6e2ffb9dc6a79f/src/slave/slave.cpp#L2652:

      publishResources()
        .then(defer(self(), [=] {
          return containerizer->update(
              executor->containerId,
              executor->allocatedResources());
        }))
      

      A destroyed executor might be dereferenced if it has been move to Framework.completedExecutors and kicked out from this circular buffer. We should refactor Slave::publishResources() and its uses to make the code less fragile.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chhsia0 Chun-Hung Hsiao
                Reporter:
                chhsia0 Chun-Hung Hsiao
                Shepherd:
                Meng Zhu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: