Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-5282

Timing condition with WAIT_CONTAINER when using dcos task exec/attach

    Details

    • Sprint:
      CLI Sprint 49
    • Story Points:
      3

      Description

      Currently the dcos task attach and dcos task exec commands are making the ATTACH_CONTAINER_OUTPUT and ATTACH_CONTAINER_INPUT calls concurrently, when any of them terminates, it makes a WAIT_CONTAINER call in order to detect the exit status. 

      While this seems to work in practice, there is a timing condition here, the WAIT_CONTAINER call should be done concurrently with other calls, because the Mesos containerizer does not keep status of terminated containers => calling `wait_container` after container termination returns `Not found`.

      However this is not easily doable due to Admin Router returning a Gateway timeout error after 60 seconds.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              agrillet Armand Grillet (Inactive)
              Watchers:
              Armand Grillet (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your JIRA administrators.