Re: Review Request 45529: Do not leak roleSorter and quotaRoleSorter in Mesos allocator.

2016-04-05 Thread Benjamin Bannier

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

(Updated April 5, 2016, 11:15 p.m.)


Review request for mesos and Joris Van Remoortere.


Changes
---

Addressed review comment from Joris.


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


Repository: mesos


Description
---

Do not leak roleSorter and quotaRoleSorter in Mesos allocator.


Diffs (updated)
-

  src/master/allocator/mesos/hierarchical.hpp 
e979fdf60da1409d1c2d08f0e9f03cef067506dd 
  src/master/allocator/mesos/hierarchical.cpp 
cd6b91edf3dde9bc4c978daefdfc83d7c3c69304 

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


Testing
---

make check (OS X, clang trunk, not optimized)

In https://reviews.apache.org/r/45534/ I add code requiring cleanup to 
`Sorter`s. Without this patch the cleanup code is never executed, but is with 
the patch.


Thanks,

Benjamin Bannier



Re: Review Request 45529: Do not leak roleSorter and quotaRoleSorter in Mesos allocator.

2016-04-05 Thread Joris Van Remoortere

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


Fix it, then Ship it!





src/master/allocator/mesos/hierarchical.cpp (lines 611 - 612)


Mind adding a `CHECK(frameworkSorters.contains(role))` here?


- Joris Van Remoortere


On April 1, 2016, 10:35 a.m., Benjamin Bannier wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45529/
> ---
> 
> (Updated April 1, 2016, 10:35 a.m.)
> 
> 
> Review request for mesos and Joris Van Remoortere.
> 
> 
> Bugs: MESOS-5073
> https://issues.apache.org/jira/browse/MESOS-5073
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Do not leak roleSorter and quotaRoleSorter in Mesos allocator.
> 
> 
> Diffs
> -
> 
>   src/master/allocator/mesos/hierarchical.hpp 
> e979fdf60da1409d1c2d08f0e9f03cef067506dd 
>   src/master/allocator/mesos/hierarchical.cpp 
> 5a5df5f8287a1f85b8b2a6aac7e6e13d0650a132 
> 
> Diff: https://reviews.apache.org/r/45529/diff/
> 
> 
> Testing
> ---
> 
> make check (OS X, clang trunk, not optimized)
> 
> In https://reviews.apache.org/r/45534/ I add code requiring cleanup to 
> `Sorter`s. Without this patch the cleanup code is never executed, but is with 
> the patch.
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>



Re: Review Request 45529: Do not leak roleSorter and quotaRoleSorter in Mesos allocator.

2016-04-01 Thread Benjamin Bannier

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

(Updated April 1, 2016, 12:35 p.m.)


Review request for mesos and Joris Van Remoortere.


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


Repository: mesos


Description
---

Do not leak roleSorter and quotaRoleSorter in Mesos allocator.


Diffs (updated)
-

  src/master/allocator/mesos/hierarchical.hpp 
e979fdf60da1409d1c2d08f0e9f03cef067506dd 
  src/master/allocator/mesos/hierarchical.cpp 
5a5df5f8287a1f85b8b2a6aac7e6e13d0650a132 

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


Testing
---

make check (OS X, clang trunk, not optimized)

In https://reviews.apache.org/r/45534/ I add code requiring cleanup to 
`Sorter`s. Without this patch the cleanup code is never executed, but is with 
the patch.


Thanks,

Benjamin Bannier



Re: Review Request 45529: Do not leak roleSorter and quotaRoleSorter in Mesos allocator.

2016-03-31 Thread Benjamin Bannier

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

(Updated March 31, 2016, 4:34 p.m.)


Review request for mesos and Joris Van Remoortere.


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


Repository: mesos


Description
---

Do not leak roleSorter and quotaRoleSorter in Mesos allocator.


Diffs
-

  src/master/allocator/mesos/hierarchical.hpp 
e979fdf60da1409d1c2d08f0e9f03cef067506dd 
  src/master/allocator/mesos/hierarchical.cpp 
5a5df5f8287a1f85b8b2a6aac7e6e13d0650a132 

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


Testing (updated)
---

make check (OS X, clang trunk, not optimized)

In https://reviews.apache.org/r/45534/ I add code requiring cleanup to 
`Sorter`s. Without this patch the cleanup code is never executed, but is with 
the patch.


Thanks,

Benjamin Bannier