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

Scheduler HTTP API does not redirect to leading master

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.24.0, 0.24.1, 0.25.0
    • Fix Version/s: 0.27.0
    • Component/s: HTTP API
    • Labels:

      Description

      The documentation for the Scheduler HTTP API says:

      If requests are made to a non-leading master a “HTTP 307 Temporary Redirect” will be received with the “Location” header pointing to the leading master.

      While the redirect functionality has been implemented, it was not actually used in the handler for the HTTP api.

      A probable fix could be:

      • Check if the current master is the leading master.
      • If not, invoke the existing redirect method in src/master/http.cpp

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                drexin Dario Rexin
                Reporter:
                drexin Dario Rexin
                Shepherd:
                Vinod Kone
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: