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

Docker command executor may stuck at infinite unkillable loop.

    XMLWordPrintableJSON

Details

    Description

      Due to the change from https://issues.apache.org/jira/browse/MESOS-8574, the behavior of docker command executor to discard the future of docker stop was changed. If there is a new killTask() invoked and there is an existing docker stop in pending state, the old one would call discard and then execute the new one. This is ok for most of cases.

      However, docker stop could take long (depends on grace period and whether the application could handle SIGTERM). If the framework retry killTask more frequently than grace period (depends on killpolicy API, env var, or agent flags), then the executor may be stuck forever with unkillable tasks. Because everytime before the docker stop finishes, the future of docker stop is discarded by the new incoming killTask.

      We should consider re-use grace period before calling discard() to a pending docker stop future.

      Attachments

        Issue Links

          Activity

            People

              abudnik Andrei Budnik
              gilbert Gilbert Song
              Qian Zhang Qian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: