----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34646/#review85528 -----------------------------------------------------------
The current code already returns an empty task list, with response code 200 (OK). We should change this behavior. See https://issues.apache.org/jira/browse/MESOS-1865 src/master/http.cpp <https://reviews.apache.org/r/34646/#comment137102> The JIRA suggests that this case should not return OK (200), unless it queries the active master to return the actual tasks list. Otherwise, if it's going to return a blank tasks[] array, then it should return something like a 500 (Internal Server Error), or 307 (Temporary Redirect). - Adam B On May 24, 2015, 11:22 a.m., haosdent huang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34646/ > ----------------------------------------------------------- > > (Updated May 24, 2015, 11:22 a.m.) > > > Review request for mesos and Adam B. > > > Bugs: MESOS-1865 > https://issues.apache.org/jira/browse/MESOS-1865 > > > Repository: mesos > > > Description > ------- > > Return empty task list when current master is not a leader. > > > Diffs > ----- > > src/master/http.cpp 01dbdad9720a9cd30505683ae1117970cda918a0 > > Diff: https://reviews.apache.org/r/34646/diff/ > > > Testing > ------- > > > Thanks, > > haosdent huang > >
