Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-4855

Terminal tasks should not be send in reconciliation

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: Marathon 1.4.0
    • Component/s: None
    • Labels:

      Description

      A task group in Mesos will terminate when either all tasks are terminal or at least one task terminated abnormally (exit code != 0).
      E.g., a valid state of a pod in Marathon is

      > task1: Running
      > task2: Finished

      In this a case, the overall status of the instance is Running. If Marathon performs an explicit reconciliation for task2 in this case, Mesos will eventually send a status update that indicates that task2 is Gone, as it no longer exists.

      On receiving this update, Marathon will interpret the overall instance status to be Gone, assuming the whole pod is not existing. A workaround is to not explicitly reconcile terminal tasks.

      An improvement in the future would be to disallow changing a terminal task status to some other status (a task that is Finished should never become Gone).

        Attachments

          Activity

            People

            • Assignee:
              matthias Matthias Veit (Inactive)
              Reporter:
              junterstein Johannes Unterstein
              Team:
              Orchestration Team
              Watchers:
              Marco Monaco
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: