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

Docker containerizer should ignore pids of executors that do not pass the connection check.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • None
    • None
    • containerization
    • Containerization: RI13 Sp 45
    • 2

    Description

      When recovering executors with a tracked pid we first try to establish a connection to its libprocess address to avoid reaping an irrelevant process:

      https://github.com/apache/mesos/blob/4580834471fb3bc0b95e2b96e04a63d34faef724/src/slave/containerizer/docker.cpp#L1019-L1054

      If the connection fails to establish, we should not track its pid: https://github.com/apache/mesos/blob/4580834471fb3bc0b95e2b96e04a63d34faef724/src/slave/containerizer/docker.cpp#L1071

      One trouble this might cause is that if the pid is being used by another executor, this could lead to duplicate pid error and lead the agent into a crash loop:

      https://github.com/apache/mesos/blob/4580834471fb3bc0b95e2b96e04a63d34faef724/src/slave/containerizer/docker.cpp#L1066-L1068

      Attachments

        Issue Links

          Activity

            People

              qianzhang Qian Zhang
              mzhu Meng Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: