> On Aug. 18, 2015, 6:49 p.m., Ben Mahler wrote: > > It seems like Forbidden should be used for authorization issues, can we > > just have the non-leaders say they are not available? It seems to make > > sense, since they are not elected, they are not available.
changed master to send 503 when it's not elected. > On Aug. 18, 2015, 6:49 p.m., Ben Mahler wrote: > > src/master/http.cpp, lines 345-359 > > <https://reviews.apache.org/r/37588/diff/1/?file=1043280#file1043280line345> > > > > Would be nice to have some metrics for visibility into these, given we > > have dropped_messages for pid-based schedulers. TODO? added a TODO. - Vinod ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/37588/#review95758 ----------------------------------------------------------- On Aug. 18, 2015, 7:10 p.m., Vinod Kone wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/37588/ > ----------------------------------------------------------- > > (Updated Aug. 18, 2015, 7:10 p.m.) > > > Review request for mesos, Anand Mazumdar and Ben Mahler. > > > Bugs: MESOS-3290 > https://issues.apache.org/jira/browse/MESOS-3290 > > > Repository: mesos > > > Description > ------- > > Master returns an error when it is not the leader or is still doing recovery. > This is same as what happens with PID frameworks. > > > Diffs > ----- > > src/master/http.cpp d016b3c055a06e7aa0649a36fd4b095c2938ba56 > src/scheduler/scheduler.cpp 37f41debc394a773f33465dab1a89d7ef7264f64 > > Diff: https://reviews.apache.org/r/37588/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Vinod Kone > >
