mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Mahler <bmah...@apache.org>
Subject Re: Review Request 64357: Updated the allocator to untrack allocations via a single code path.
Date Thu, 07 Dec 2017 21:30:09 GMT

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


Fix it, then Ship it!





src/master/allocator/mesos/hierarchical.hpp
Lines 559 (patched)
<https://reviews.apache.org/r/64357/#comment271687>

    untrack resources that are no longer allocated?



src/master/allocator/mesos/hierarchical.cpp
Lines 2506-2512 (patched)
<https://reviews.apache.org/r/64357/#comment271690>

    ```
      // TODO(mzhu): Add a `CHECK(slaves.contains(slaveId));`
      // here once MESOS-621 is resolved. Ideally, `removeSlave()`
      // should unallocate resources in the framework sorters.
      // But currently, a slave is removed first via `removeSlave()`
      // and later a call to `recoverResources()` occurs to recover
      // the framework's resources.
    ```


- Benjamin Mahler


On Dec. 6, 2017, 1:26 a.m., Meng Zhu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64357/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2017, 1:26 a.m.)
> 
> 
> Review request for mesos and Benjamin Mahler.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Introduced a helper for untracking allocated resources in the
> sorters.
> 
> 
> Diffs
> -----
> 
>   src/master/allocator/mesos/hierarchical.hpp 0622026858f7cff87ff0086b7be65f30c7555525

>   src/master/allocator/mesos/hierarchical.cpp d3485160df0c3c2fceba551371a5cade81bb4c71

> 
> 
> Diff: https://reviews.apache.org/r/64357/diff/1/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Meng Zhu
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message