mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haosdent huang <haosd...@gmail.com>
Subject Re: Review Request 34646: Redirect to the leader master when current master is not a leader.
Date Sat, 16 Apr 2016 17:01:04 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34646/
-----------------------------------------------------------

(Updated April 16, 2016, 5:01 p.m.)


Review request for mesos and Adam B.


Changes
-------

Rebase.


Bugs: MESOS-1865
    https://issues.apache.org/jira/browse/MESOS-1865


Repository: mesos


Description (updated)
-------

In this changes, we redirect to the leader master in those http
endpoints which depend on master elected status if current master is
not a leader.


Diffs (updated)
-----

  src/master/http.cpp d83ccd394c688803369034e22de79b40277a3a7c 

Diff: https://reviews.apache.org/r/34646/diff/


Testing
-------

make check

when current master is not a leader, it would redirect to the leader master.

```
$ curl -i http://master1:5050/master/tasks.json
HTTP/1.1 307 Temporary Redirect
Date: Mon, 01 Jun 2015 06:30:08 GMT
Location: http://master2:5050//master/tasks.json
Content-Length: 0
```


Thanks,

haosdent huang


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message