You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Joris Van Remoortere <jo...@gmail.com> on 2015/09/02 21:32:10 UTC
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/
-----------------------------------------------------------
(Updated Sept. 2, 2015, 7:32 p.m.)
Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
Bugs: MESOS-1474
https://issues.apache.org/jira/browse/MESOS-1474
Repository: mesos
Description
-------
See summary.
Diffs (updated)
-----
include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
src/master/allocator/mesos/hierarchical.hpp 38f8fd2c84314bb3731684d0e9795cb4f50a227e
src/master/master.hpp 594dd25f9aa9b6147680d0a838a77c3222941f4b
src/master/master.cpp 56bcbcc08fa0f98416c5048080adb25efc588019
src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
src/tests/mesos.hpp 906948d459b5a88a4ad7952801eb8c540b58c569
src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
src/tests/slave_recovery_tests.cpp 4d137e0f1278fdacf71f101b1967df35bfbcdd23
Diff: https://reviews.apache.org/r/37177/diff/
Testing
-------
Thanks,
Joris Van Remoortere
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Yong Qiao Wang <yq...@cn.ibm.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/#review98186
-----------------------------------------------------------
Ship it!
Ship It!
- Yong Qiao Wang
On Sept. 2, 2015, 7:32 p.m., Joris Van Remoortere wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37177/
> -----------------------------------------------------------
>
> (Updated Sept. 2, 2015, 7:32 p.m.)
>
>
> Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
>
>
> Bugs: MESOS-1474
> https://issues.apache.org/jira/browse/MESOS-1474
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
> include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
> src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
> src/master/allocator/mesos/hierarchical.hpp 38f8fd2c84314bb3731684d0e9795cb4f50a227e
> src/master/master.hpp 594dd25f9aa9b6147680d0a838a77c3222941f4b
> src/master/master.cpp 56bcbcc08fa0f98416c5048080adb25efc588019
> src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
> src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
> src/tests/mesos.hpp 906948d459b5a88a4ad7952801eb8c540b58c569
> src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
> src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
> src/tests/slave_recovery_tests.cpp 4d137e0f1278fdacf71f101b1967df35bfbcdd23
>
> Diff: https://reviews.apache.org/r/37177/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Joris Van Remoortere
>
>
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/#review98337
-----------------------------------------------------------
Ship it!
include/mesos/maintenance/maintenance.hpp (line 31)
<https://reviews.apache.org/r/37177/#comment154748>
s/Master/Allocator/
src/master/allocator/mesos/hierarchical.hpp (line 1119)
<https://reviews.apache.org/r/37177/#comment154756>
Can we use NOTE: here like in the other review? Thanks!
src/master/allocator/mesos/hierarchical.hpp (line 1155)
<https://reviews.apache.org/r/37177/#comment154751>
A similar suggestion to a previous review:
Option<MaintenanceStatus> maintenanceStatus = slaves[slaveId].maintenanceStatus;
if (maintenanceStatus.isSome()) {
...;
if (!maintenanceStatus->statuses.contains(frameworkId) || ...) {
...;
}
...;
}
Or '!maintenanceStatus.get().statuses.contains(frameworkId)' if you prefer the '.get()' variant (ahhh! this is what I was worried about!).
src/tests/hierarchical_allocator_tests.cpp (lines 195 - 196)
<https://reviews.apache.org/r/37177/#comment154750>
Can we please s/offerQueue/allocations/ s/inverseOfferQueue/deallocations/ thanks!
- Benjamin Hindman
On Sept. 2, 2015, 7:32 p.m., Joris Van Remoortere wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37177/
> -----------------------------------------------------------
>
> (Updated Sept. 2, 2015, 7:32 p.m.)
>
>
> Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
>
>
> Bugs: MESOS-1474
> https://issues.apache.org/jira/browse/MESOS-1474
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
> include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
> src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
> src/master/allocator/mesos/hierarchical.hpp 38f8fd2c84314bb3731684d0e9795cb4f50a227e
> src/master/master.hpp 594dd25f9aa9b6147680d0a838a77c3222941f4b
> src/master/master.cpp 56bcbcc08fa0f98416c5048080adb25efc588019
> src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
> src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
> src/tests/mesos.hpp 906948d459b5a88a4ad7952801eb8c540b58c569
> src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
> src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
> src/tests/slave_recovery_tests.cpp 4d137e0f1278fdacf71f101b1967df35bfbcdd23
>
> Diff: https://reviews.apache.org/r/37177/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Joris Van Remoortere
>
>
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Joris Van Remoortere <jo...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/
-----------------------------------------------------------
(Updated Sept. 14, 2015, 12:51 p.m.)
Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
Changes
-------
rebased.
Bugs: MESOS-1474
https://issues.apache.org/jira/browse/MESOS-1474
Repository: mesos
Description
-------
See summary.
Diffs (updated)
-----
include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
src/master/allocator/mesos/hierarchical.hpp fbf353d8bdd4322275057e392a958fca77ecd8b3
src/master/master.hpp 12cc1ad45de3291ec22d4fe2b7ee11c4d7565c24
src/master/master.cpp c90311fa2152810e7604a0a2dee630bd14929574
src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
src/tests/mesos.hpp 6b5031191b81a18f9596f547a1e0f67e35881cc3
src/tests/reservation_endpoints_tests.cpp dfab4971e04a81ac98ed118ea877bcca5db17bb5
src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
src/tests/slave_recovery_tests.cpp 6aae14a3c39b9aee76147b691b0170946e1120b5
Diff: https://reviews.apache.org/r/37177/diff/
Testing
-------
Thanks,
Joris Van Remoortere
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/#review98801
-----------------------------------------------------------
Ship it!
Ship It!
- Benjamin Hindman
On Sept. 13, 2015, 8:33 p.m., Joris Van Remoortere wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37177/
> -----------------------------------------------------------
>
> (Updated Sept. 13, 2015, 8:33 p.m.)
>
>
> Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
>
>
> Bugs: MESOS-1474
> https://issues.apache.org/jira/browse/MESOS-1474
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
> include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
> src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
> src/master/allocator/mesos/hierarchical.hpp fbf353d8bdd4322275057e392a958fca77ecd8b3
> src/master/master.hpp 12cc1ad45de3291ec22d4fe2b7ee11c4d7565c24
> src/master/master.cpp c90311fa2152810e7604a0a2dee630bd14929574
> src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
> src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
> src/tests/mesos.hpp 6b5031191b81a18f9596f547a1e0f67e35881cc3
> src/tests/reservation_endpoints_tests.cpp dfab4971e04a81ac98ed118ea877bcca5db17bb5
> src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
> src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
> src/tests/slave_recovery_tests.cpp 6aae14a3c39b9aee76147b691b0170946e1120b5
>
> Diff: https://reviews.apache.org/r/37177/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Joris Van Remoortere
>
>
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Joris Van Remoortere <jo...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/
-----------------------------------------------------------
(Updated Sept. 13, 2015, 8:33 p.m.)
Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
Bugs: MESOS-1474
https://issues.apache.org/jira/browse/MESOS-1474
Repository: mesos
Description
-------
See summary.
Diffs (updated)
-----
include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
src/master/allocator/mesos/hierarchical.hpp fbf353d8bdd4322275057e392a958fca77ecd8b3
src/master/master.hpp 12cc1ad45de3291ec22d4fe2b7ee11c4d7565c24
src/master/master.cpp c90311fa2152810e7604a0a2dee630bd14929574
src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
src/tests/mesos.hpp 6b5031191b81a18f9596f547a1e0f67e35881cc3
src/tests/reservation_endpoints_tests.cpp dfab4971e04a81ac98ed118ea877bcca5db17bb5
src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
src/tests/slave_recovery_tests.cpp 6aae14a3c39b9aee76147b691b0170946e1120b5
Diff: https://reviews.apache.org/r/37177/diff/
Testing
-------
Thanks,
Joris Van Remoortere
Re: Review Request 37177: Maintenance Primitives: Added inverse
offers.
Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37177/#review97529
-----------------------------------------------------------
Ship it!
LGTM!
src/master/allocator/mesos/hierarchical.hpp (line 1119)
<https://reviews.apache.org/r/37177/#comment153496>
Nano-nit: You used `NOTE:` on all the other "we implement maintenance here" comments.
- Joseph Wu
On Sept. 2, 2015, 12:32 p.m., Joris Van Remoortere wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37177/
> -----------------------------------------------------------
>
> (Updated Sept. 2, 2015, 12:32 p.m.)
>
>
> Review request for mesos, Benjamin Hindman, Artem Harutyunyan, and Joseph Wu.
>
>
> Bugs: MESOS-1474
> https://issues.apache.org/jira/browse/MESOS-1474
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> include/mesos/maintenance/maintenance.hpp 7fec3ffe063e766dcec4952001fa5c6e20d9eec8
> include/mesos/master/allocator.hpp 659f37b3f9d9fa02da9bdb6c85cd3c180a24b73a
> src/master/allocator/mesos/allocator.hpp aa55755a9c3250579e9366bdbc17a2449e95d659
> src/master/allocator/mesos/hierarchical.hpp 38f8fd2c84314bb3731684d0e9795cb4f50a227e
> src/master/master.hpp 594dd25f9aa9b6147680d0a838a77c3222941f4b
> src/master/master.cpp 56bcbcc08fa0f98416c5048080adb25efc588019
> src/tests/hierarchical_allocator_tests.cpp 9748ca0b38888fee25dcec51c64d8ba84dbd4aaf
> src/tests/master_allocator_tests.cpp 89331965553505f6b7eebf39ad27d943df816a24
> src/tests/mesos.hpp 906948d459b5a88a4ad7952801eb8c540b58c569
> src/tests/reservation_tests.cpp aeee36752573e3f401d3dca7d2d69c90d0e8bd6b
> src/tests/resource_offers_tests.cpp 882a9ff4d09aace486182828bf43b643b0d0c519
> src/tests/slave_recovery_tests.cpp 4d137e0f1278fdacf71f101b1967df35bfbcdd23
>
> Diff: https://reviews.apache.org/r/37177/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Joris Van Remoortere
>
>