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

Slaves sends mutated copy of executorinfo to new elected master

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • None
    • Mesosphere Q1 Sprint 5 - 3/20

    Description

      static ExecutorInfo decorateExecutorEnvironment(
          ExecutorInfo executorInfo,
          const TaskInfo& taskInfo)
      {
        // Merge environment variables retrieved from label-decorator hooks.
        executorInfo.mutable_command()->mutable_environment()->MergeFrom(
            HookManager::slaveLaunchExecutorEnvironmentDecorator(
                executorInfo,
                taskInfo));
      
        return executorInfo;
      }
      

      does a default allocation of environment, even when the original ExecutorInfo doesn't have one set.

      When a new master is elected and receives this copy, it would reject tasks for the same Executor because of this difference:

      Existing ExecutorInfo has :
      command

      { uris { value: "/usr/local/bin/gc_executor" executable: true }

      environment

      { } value: "./gc_executor" } framework_id { value: "201103282247-0000000019-0000" }

      ------------------------------------------------------------
      New Task's ExecutorInfo has:
      command

      { uris { value: "/usr/local/bin/gc_executor" executable: true }

      value: "./gc_executor"
      }
      framework_id

      { value: "201103282247-0000000019-0000" }

      Attachments

        Issue Links

          Activity

            People

              karya Kapil Arya
              chzhcn Chi Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: