----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52357/#review150865 -----------------------------------------------------------
src/tests/health_check_tests.cpp (line 1336) <https://reviews.apache.org/r/52357/#comment218945> As @alexr metioned in https://reviews.apache.org/r/52301/#review150860 We could speed up this test case by ``` master::Flags masterFlags = CreateMasterFlags(); masterFlags.allocation_interval = Milliseconds(50); Try<Owned<cluster::Master>> master = StartMaster(masterFlags); ASSERT_SOME(master); ``` here. src/tests/health_check_tests.cpp (lines 1344 - 1354) <https://reviews.apache.org/r/52357/#comment218946> And it is not need to create containerizer here. We could use ``` slave::Flags flags = CreateSlaveFlags(); flags.isolation = "posix/cpu,posix/mem"; Owned<MasterDetector> detector = master.get()->createDetector(); Try<Owned<cluster::Slave>> agent = StartSlave(detector.get()); ASSERT_SOME(agent); ``` - haosdent huang On Sept. 29, 2016, 3:30 p.m., Gastón Kleiman wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/52357/ > ----------------------------------------------------------- > > (Updated Sept. 29, 2016, 3:30 p.m.) > > > Review request for mesos, Alexander Rukletsov and haosdent huang. > > > Bugs: MESOS-6170 > https://issues.apache.org/jira/browse/MESOS-6170 > > > Repository: mesos > > > Description > ------- > > The health check library would ignore all failures until after the end > of the grace period. > > This behaviour was misleading. With the changes in this commit, once a > health check succeeds for the first time, the grace period rule for > failures is not be applied any more. > > > Diffs > ----- > > src/health-check/health_checker.cpp > ea93132f2a5d4828c75005f102eddc4c3131599d > src/tests/health_check_tests.cpp e6b02f23dc1b1b84381ab0af0e3df5918b60ae40 > > Diff: https://reviews.apache.org/r/52357/diff/ > > > Testing > ------- > > Manual tests using Marathon. > Added a new unit test and verified that it fails without the change, but > succeeds with it. > > > Thanks, > > Gastón Kleiman > >
