Re: Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-31 Thread Yong Qiao Wang


> On Aug. 26, 2015, 11:13 p.m., Joseph Wu wrote:
> > We probably want to keep the check.  It's good defensive coding.
> 
> Yong Qiao Wang wrote:
> Thanks Joseph Wu for your comments.
> 
> But Mesos now always hardcode the * role in roleSorter, so do we real 
> need to have this obviously useless check?
> 
> Vinod Kone wrote:
> I think it is worthwhile having this check because the fact that the 
> 'Master' actor adds "*" to roles is unknown to the "Allocator" actor. In 
> other words, it needs non-local reasoning.

OK, Thanks @Viond Kone for your commnets, and thanks @Joseph again.

I agree with your for your suggestion, and will close this review requrest 
directly.


- Yong Qiao


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


On Aug. 31, 2015, 7:58 a.m., Yong Qiao Wang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37784/
> ---
> 
> (Updated Aug. 31, 2015, 7:58 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Jie Yu, Joseph Wu, and Vinod Kone.
> 
> 
> Bugs: MESOS-3301
> https://issues.apache.org/jira/browse/MESOS-3301
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Remove the redundant check in HierarchicalDRFAlocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> 38f8fd2c84314bb3731684d0e9795cb4f50a227e 
> 
> Diff: https://reviews.apache.org/r/37784/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Yong Qiao Wang
> 
>



Re: Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-31 Thread Vinod Kone


> On Aug. 26, 2015, 11:13 p.m., Joseph Wu wrote:
> > We probably want to keep the check.  It's good defensive coding.
> 
> Yong Qiao Wang wrote:
> Thanks Joseph Wu for your comments.
> 
> But Mesos now always hardcode the * role in roleSorter, so do we real 
> need to have this obviously useless check?

I think it is worthwhile having this check because the fact that the 'Master' 
actor adds "*" to roles is unknown to the "Allocator" actor. In other words, it 
needs non-local reasoning.


- Vinod


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


On Aug. 31, 2015, 7:58 a.m., Yong Qiao Wang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37784/
> ---
> 
> (Updated Aug. 31, 2015, 7:58 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Jie Yu, Joseph Wu, and Vinod Kone.
> 
> 
> Bugs: MESOS-3301
> https://issues.apache.org/jira/browse/MESOS-3301
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Remove the redundant check in HierarchicalDRFAlocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> 38f8fd2c84314bb3731684d0e9795cb4f50a227e 
> 
> Diff: https://reviews.apache.org/r/37784/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Yong Qiao Wang
> 
>



Re: Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-26 Thread Yong Qiao Wang


> On Aug. 26, 2015, 11:13 p.m., Joseph Wu wrote:
> > We probably want to keep the check.  It's good defensive coding.

Thanks Joseph Wu for your comments.

But Mesos now always hardcode the * role in roleSorter, so do we real need to 
have this obviously useless check?


- Yong Qiao


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


On Aug. 26, 2015, 2:54 a.m., Yong Qiao Wang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37784/
> ---
> 
> (Updated Aug. 26, 2015, 2:54 a.m.)
> 
> 
> Review request for mesos.
> 
> 
> Bugs: MESOS-3301
> https://issues.apache.org/jira/browse/MESOS-3301
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Remove the redundant check in HierarchicalDRFAlocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> 38f8fd2c84314bb3731684d0e9795cb4f50a227e 
> 
> Diff: https://reviews.apache.org/r/37784/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Yong Qiao Wang
> 
>



Re: Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-26 Thread Joseph Wu

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


We probably want to keep the check.  It's good defensive coding.

- Joseph Wu


On Aug. 25, 2015, 7:54 p.m., Yong Qiao Wang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37784/
> ---
> 
> (Updated Aug. 25, 2015, 7:54 p.m.)
> 
> 
> Review request for mesos.
> 
> 
> Bugs: MESOS-3301
> https://issues.apache.org/jira/browse/MESOS-3301
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Remove the redundant check in HierarchicalDRFAlocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> 38f8fd2c84314bb3731684d0e9795cb4f50a227e 
> 
> Diff: https://reviews.apache.org/r/37784/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Yong Qiao Wang
> 
>



Re: Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-25 Thread Mesos ReviewBot

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


Patch looks great!

Reviews applied: [37784]

All tests passed.

- Mesos ReviewBot


On Aug. 26, 2015, 2:54 a.m., Yong Qiao Wang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37784/
> ---
> 
> (Updated Aug. 26, 2015, 2:54 a.m.)
> 
> 
> Review request for mesos.
> 
> 
> Bugs: MESOS-3301
> https://issues.apache.org/jira/browse/MESOS-3301
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Remove the redundant check in HierarchicalDRFAlocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> 38f8fd2c84314bb3731684d0e9795cb4f50a227e 
> 
> Diff: https://reviews.apache.org/r/37784/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Yong Qiao Wang
> 
>



Review Request 37784: Remove the redundant check in HierarchicalDRFAlocator.

2015-08-25 Thread Yong Qiao Wang

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

Review request for mesos.


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


Repository: mesos


Description
---

Remove the redundant check in HierarchicalDRFAlocator.


Diffs
-

  src/master/allocator/mesos/hierarchical.hpp 
38f8fd2c84314bb3731684d0e9795cb4f50a227e 

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


Testing
---


Thanks,

Yong Qiao Wang