> On April 18, 2016, 9:18 p.m., Vinod Kone wrote: > > LGTM overall. Just wondering if this is considered a backwards incompatible > > change for operators/tools that did not expect a redirect previously. Can > > you send an email to the dev/user list if this is an OK change to make > > without a deprecation cycle? Another option would be to do this change in > > the v1 operator API and keep the old semantics with the current operator > > API.
Got it, I would send an email shortly. - haosdent ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34646/#review129436 ----------------------------------------------------------- On April 16, 2016, 5:15 p.m., haosdent huang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34646/ > ----------------------------------------------------------- > > (Updated April 16, 2016, 5:15 p.m.) > > > Review request for mesos, Adam B, Anand Mazumdar, Cody Maloney, Ian Downes, > Neil Conway, and Vinod Kone. > > > Bugs: MESOS-1865 > https://issues.apache.org/jira/browse/MESOS-1865 > > > Repository: mesos > > > Description > ------- > > 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 > ----- > > 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 > >
