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

cgroups isolator cleanup failed when the hierarchy is cleanup by docker daemon

    XMLWordPrintableJSON

Details

    Description

      Now if we launch a docker container in Mesos containerizer, the racing may happen
      between docker daemon and Mesos containerizer during cgroups operations.
      For example, when the docker container which run in Mesos containerizer OOM exit,
      Mesos containerizer would destroy following hierarchies

      /sys/fs/cgroup/freezer/mesos/<mesos-cgroup>/<docker-cgroup>
      /sys/fs/cgroup/freezer/mesos/<mesos-cgroup>
      

      But the docker daemon may destroy

      /sys/fs/cgroup/freezer/mesos/<mesos-cgroup>/<docker-cgroup>
      

      at the same time.

      If the docker daemon destroy the hierarchy first, then the Mesos containerizer would
      failed during CgroupsIsolatorProcess::cleanup because it could not find that hierarchy
      when destroying.

      Attachments

        Issue Links

          Activity

            People

              anindya.sinha Anindya Sinha
              anindya.sinha Anindya Sinha
              Yan Xu Yan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: