Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.24.0, 0.24.1, 0.25.0
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
- duplicates
-
MESOS-3902 The Location header when non-leading master redirects to leading master is incomplete.
- Resolved
- is related to
-
MESOS-1865 Redirect to the leader master when current master is not a leader
- Resolved