You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Michael Park <mp...@apache.org> on 2017/06/15 07:40:18 UTC

Re: Review Request 60020: Resources: Added utilities `toUnreserved()` and `(push|pop)Reservation`.

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

(Updated June 15, 2017, 12:40 a.m.)


Review request for mesos and Benjamin Mahler.


Summary (updated)
-----------------

Resources: Added utilities `toUnreserved()` and `(push|pop)Reservation`.


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


Repository: mesos


Description (updated)
-------

This patches introduces utilities `toUnreserved`, `pushReservation` and
`popReservation`. They are intended to replace the current `flatten`.
We'll switch over to use them once the 'post-reservation-refinement'
format is used for `Resources`.


Diffs (updated)
-----

  include/mesos/resources.hpp 2b55847be79c7930b598ef31c932e8aca0fa73db 
  include/mesos/v1/resources.hpp 7c6e8569b990ad34fd6c449b31140f844dae222f 
  src/common/resources.cpp 7b3fae1a34150964ba3831a3aef2f868e338aef8 
  src/v1/resources.cpp 236fe17730918479a33314e51d14f3cc1679d432 


Diff: https://reviews.apache.org/r/60020/diff/4/

Changes: https://reviews.apache.org/r/60020/diff/3-4/


Testing
-------


Thanks,

Michael Park


Re: Review Request 60020: Resources: Added `toUnreserved()` and `(push|pop)Reservation`.

Posted by Benjamin Mahler <bm...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60020/#review178052
-----------------------------------------------------------


Fix it, then Ship it!




Modulo comments, be sure to replicate the changes in v1.


include/mesos/resources.hpp
Lines 428-429 (patched)
<https://reviews.apache.org/r/60020/#comment251845>

    Can you put a newline between the comment paragraphs? Ditto on the other TODOs.



include/mesos/resources.hpp
Lines 444-446 (patched)
<https://reviews.apache.org/r/60020/#comment251883>

    Should we CHECK that all of the last reservations we're popping here are to the same role? That seems to be the only sane use of this function?



include/mesos/resources.hpp
Lines 448-449 (patched)
<https://reviews.apache.org/r/60020/#comment251884>

    All of the reservations removed?


- Benjamin Mahler


On June 15, 2017, 7:40 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60020/
> -----------------------------------------------------------
> 
> (Updated June 15, 2017, 7:40 a.m.)
> 
> 
> Review request for mesos and Benjamin Mahler.
> 
> 
> Bugs: MESOS-7655
>     https://issues.apache.org/jira/browse/MESOS-7655
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patches introduces utilities `toUnreserved`, `pushReservation` and
> `popReservation`. They are intended to replace the current `flatten`.
> We'll switch over to use them once the 'post-reservation-refinement'
> format is used for `Resources`.
> 
> 
> Diffs
> -----
> 
>   include/mesos/resources.hpp 2b55847be79c7930b598ef31c932e8aca0fa73db 
>   include/mesos/v1/resources.hpp 7c6e8569b990ad34fd6c449b31140f844dae222f 
>   src/common/resources.cpp 7b3fae1a34150964ba3831a3aef2f868e338aef8 
>   src/v1/resources.cpp 236fe17730918479a33314e51d14f3cc1679d432 
> 
> 
> Diff: https://reviews.apache.org/r/60020/diff/5/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 60020: Resources: Added utilities `toUnreserved()` and `(push|pop)Reservation`.

Posted by Neil Conway <ne...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60020/#review178014
-----------------------------------------------------------



`apply-reviews.py` fails for me on this patch:

```
2017-06-15 09:44:00 URL:https://reviews.apache.org/r/60020/diff/raw/ [6066/6066] -> "60020.patch" [1]
Checking 4 C++ files
Total errors found: 0
No Python files to lint
Error: No line in the commit message summary may exceed 72 characters.
```

- Neil Conway


On June 15, 2017, 7:40 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60020/
> -----------------------------------------------------------
> 
> (Updated June 15, 2017, 7:40 a.m.)
> 
> 
> Review request for mesos and Benjamin Mahler.
> 
> 
> Bugs: MESOS-7655
>     https://issues.apache.org/jira/browse/MESOS-7655
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patches introduces utilities `toUnreserved`, `pushReservation` and
> `popReservation`. They are intended to replace the current `flatten`.
> We'll switch over to use them once the 'post-reservation-refinement'
> format is used for `Resources`.
> 
> 
> Diffs
> -----
> 
>   include/mesos/resources.hpp 2b55847be79c7930b598ef31c932e8aca0fa73db 
>   include/mesos/v1/resources.hpp 7c6e8569b990ad34fd6c449b31140f844dae222f 
>   src/common/resources.cpp 7b3fae1a34150964ba3831a3aef2f868e338aef8 
>   src/v1/resources.cpp 236fe17730918479a33314e51d14f3cc1679d432 
> 
> 
> Diff: https://reviews.apache.org/r/60020/diff/5/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Michael Park
> 
>