Re: Review Request 53237: Improved slave recovery tests to check reconciliation, metrics.

2016-12-19 Thread Neil Conway


> On Nov. 4, 2016, 11:53 p.m., Vinod Kone wrote:
> > src/tests/slave_recovery_tests.cpp, line 2886
> > 
> >
> > why? can you add more info for posterity?

The reason is that the test terminated the slave but hadn't actually destroyed 
the slave's process. Various slave metrics are implemented by `dispatch`-ing to 
the slave process; those dispatches are silently dropped if the slave process 
has been terminated. If we destroy the slave object, `Slave::~Slave()` removes 
the actual metrics themselves, so no dispatch is attempted. See MESOS-6231.

I ended up reworking this so that we just destroy the slave object instead of 
terminating it, so I don't think we need the comment anyway.


- Neil


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53237/#review155022
---


On Oct. 27, 2016, 6:40 p.m., Neil Conway wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53237/
> ---
> 
> (Updated Oct. 27, 2016, 6:40 p.m.)
> 
> 
> Review request for mesos and Vinod Kone.
> 
> 
> Bugs: MESOS-5396
> https://issues.apache.org/jira/browse/MESOS-5396
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Improved slave recovery tests to check reconciliation, metrics.
> 
> 
> Diffs
> -
> 
>   src/tests/slave_recovery_tests.cpp 65fc18bc2732dc53581d39ee23368e347f0b2ca4 
> 
> Diff: https://reviews.apache.org/r/53237/diff/
> 
> 
> Testing
> ---
> 
> `make check`
> 
> 
> Thanks,
> 
> Neil Conway
> 
>



Re: Review Request 53237: Improved slave recovery tests to check reconciliation, metrics.

2016-11-04 Thread Vinod Kone

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53237/#review155022
---


Fix it, then Ship it!





src/tests/slave_recovery_tests.cpp (line 2886)


why? can you add more info for posterity?


- Vinod Kone


On Oct. 27, 2016, 6:40 p.m., Neil Conway wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53237/
> ---
> 
> (Updated Oct. 27, 2016, 6:40 p.m.)
> 
> 
> Review request for mesos and Vinod Kone.
> 
> 
> Bugs: MESOS-5396
> https://issues.apache.org/jira/browse/MESOS-5396
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Improved slave recovery tests to check reconciliation, metrics.
> 
> 
> Diffs
> -
> 
>   src/tests/slave_recovery_tests.cpp 65fc18bc2732dc53581d39ee23368e347f0b2ca4 
> 
> Diff: https://reviews.apache.org/r/53237/diff/
> 
> 
> Testing
> ---
> 
> `make check`
> 
> 
> Thanks,
> 
> Neil Conway
> 
>



Review Request 53237: Improved slave recovery tests to check reconciliation, metrics.

2016-10-27 Thread Neil Conway

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53237/
---

Review request for mesos and Vinod Kone.


Bugs: MESOS-5396
https://issues.apache.org/jira/browse/MESOS-5396


Repository: mesos


Description
---

Improved slave recovery tests to check reconciliation, metrics.


Diffs
-

  src/tests/slave_recovery_tests.cpp 65fc18bc2732dc53581d39ee23368e347f0b2ca4 

Diff: https://reviews.apache.org/r/53237/diff/


Testing
---

`make check`


Thanks,

Neil Conway