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

Document that /reserve, /create-volumes endpoints can return misleading "success"

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Mesosphere Sprint 27, Mesosphere Sprint 28
    • 3

    Description

      The docs for the /reserve endpoint say:

      200 OK: Success (the requested resources have been reserved).
      

      This is not true: the master returns 200 when the request has been validated and a CheckpointResourcesMessage has been sent to the agent, but the master does not attempt to verify that the message has been received or that the agent successfully checkpointed. Same behavior applies to /unreserve, /create-volumes, and /destroy-volumes.

      We should either:

      1. Accurately document what 200 return code means.
      2. Change the implementation to wait for the agent's next checkpoint to succeed (and to include the effect of the operation) before returning success to the HTTP client.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            neilc Neil Conway
            neilc Neil Conway
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                Mesosphere Sprint 27 ended 01/Feb/16
                Mesosphere Sprint 28 ended 16/Feb/16
                View on Board

                Slack

                  Issue deployment