----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/38875/#review101074 -----------------------------------------------------------
src/slave/http.cpp (line 292) <https://reviews.apache.org/r/38875/#comment158388> Can you please add some comments for when this if condition will be hit? I see that the scheduler API is not handling such logic. - Guangya Liu On 九月 30, 2015, 3:39 a.m., Anand Mazumdar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/38875/ > ----------------------------------------------------------- > > (Updated 九月 30, 2015, 3:39 a.m.) > > > Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone. > > > Bugs: MESOS-3515 > https://issues.apache.org/jira/browse/MESOS-3515 > > > Repository: mesos > > > Description > ------- > > Refactored the `api/v1/executor` endpoint to do executor/framework > exists(`NULL`) checks before `Subscribe` since the slave explicitly knows the > `frameworkID/executorID` when it launches it. Also modified tests to first > spawn a dummy `cat` process and then make a `Subscribe` call to ensure that > the Agent knows about the Framework/Executor and not reject it via > `BadRequest` due to the `NULL` checks. > > > Diffs > ----- > > src/slave/http.cpp f9cf7bbe81b7fe9637de9a8d66329c16a7e1a89b > src/tests/executor_http_api_tests.cpp > 31938c295367686d444f8a8aa2c43d2696b481ec > > Diff: https://reviews.apache.org/r/38875/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Anand Mazumdar > >
