> On Feb. 3, 2017, 1:34 p.m., Alexander Rukletsov wrote: > > src/checks/health_checker.cpp, line 130 > > <https://reviews.apache.org/r/55901/diff/3/?file=1622282#file1622282line130> > > > > s/createRequest/createV1AgentAPIRequest? > > remove `inline` > > > > This looks like a utility function not really related to the health > > checker library. Maybe put it into "src/slave/api_utils.{hpp|cpp}"? > > Gastón Kleiman wrote: > I renamed the function. Vinod suggested to make it `inline` what's wrong > with that? > > This function as-is is specific to how we perform requests in this file > (`keep_alive = false`, protobuf serialization). Since it is used only in two > places, I'm tempted to removed it and put the code inline in the > corresponding methods.
I removed these functions. - Gastón ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55901/#review164117 ----------------------------------------------------------- On Feb. 7, 2017, 11:37 p.m., Gastón Kleiman wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55901/ > ----------------------------------------------------------- > > (Updated Feb. 7, 2017, 11:37 p.m.) > > > Review request for mesos, Alexander Rukletsov, Anand Mazumdar, haosdent > huang, and Vinod Kone. > > > Bugs: MESOS-6280 > https://issues.apache.org/jira/browse/MESOS-6280 > > > Repository: mesos > > > Description > ------- > > Added support for command health checks to the default executor. > > > Diffs > ----- > > src/checks/health_checker.hpp 95da1ff7dd6b222a93076633eb3757ec9aa43cf6 > src/checks/health_checker.cpp 58380dc18896f659aa9c4fb4bb567a55bba97f6b > src/launcher/default_executor.cpp 8e942c6faf6e2dbc70a6fff1629343c9a3ce8668 > src/tests/health_check_tests.cpp 7b6a803a28b2e4f6c27e9a0c4f668350ec2d5a81 > > Diff: https://reviews.apache.org/r/55901/diff/ > > > Testing > ------- > > Introduced a new test: `HealthCheckTest.DefaultExecutorCmdHealthCheck`. It > passes on Linux, but not on macOS. > > > Thanks, > > Gastón Kleiman > >