mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haosdent huang <>
Subject Re: Review Request 34646: Redirect to the leader master when current master is not a leader.
Date Tue, 19 Apr 2016 01:56:00 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated April 19, 2016, 1:55 a.m.)

Review request for mesos, Adam B, Anand Mazumdar, Cody Maloney, Ian Downes, Neil Conway, and
Vinod Kone.


Update comment for `redirect`.

Bugs: MESOS-1865

Repository: mesos


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 a9cb99a92ff5a783e719df5e5cfb6e8301241df9 



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


haosdent huang

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