> On March 17, 2015, 8:58 p.m., Kapil Arya wrote:
> > src/master/allocator/allocator.hpp, line 39
> > <https://reviews.apache.org/r/31776/diff/3/?file=894463#file894463line39>
> >
> >     Why do we have a separate allocator namespace? Wouldn't it be better to 
> > just put the Allocator class in `mesos::master`?

Namespace `allocator` contains everything related to resource allocation, i.e. 
also `Sorter`s, `Comparator`s. Since sorters are poorly named, I do not want to 
pollute `master` namespace. Let's create a JIRA for now: 
https://issues.apache.org/jira/browse/MESOS-2516.


> On March 17, 2015, 8:58 p.m., Kapil Arya wrote:
> > src/master/allocator/mesos/allocator.hpp, line 32
> > <https://reviews.apache.org/r/31776/diff/3/?file=894464#file894464line32>
> >
> >     Same as above. Why not kill the allocator namespace? Afterall, 
> > everything in this file has an "Allocator" suffix.

See above.


- Alexander


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


On March 13, 2015, 9:42 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31776/
> -----------------------------------------------------------
> 
> (Updated March 13, 2015, 9:42 p.m.)
> 
> 
> Review request for mesos, Kapil Arya, Michael Park, and Niklas Nielsen.
> 
> 
> Bugs: MESOS-2160
>     https://issues.apache.org/jira/browse/MESOS-2160
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This is required for out-of-tree allocator modules. RoleInfo protobuf message 
> has to be extracted into its own public proto file.
> 
> 
> Diffs
> -----
> 
>   include/mesos/master/allocator.proto PRE-CREATION 
>   src/Makefile.am 3059818231c46484039d179cd6916932eff6cd68 
>   src/local/local.hpp 0aa50ef4f44c347eca4b3a409f2a8d03ba321d82 
>   src/local/local.cpp 19083368212b24ce1afef3a5f91d48766d1cd55e 
>   src/master/allocator/allocator.hpp b67b8fddbd7a3fffc6fe24d5e77cd1db8cb6f69b 
>   src/master/allocator/mesos/allocator.hpp 
> fb898f1175b61b442204e6e38c69ccc2838a646f 
>   src/master/main.cpp 7cce3a0bb808a1cb7bac9acab31eb1c67a15ea9f 
>   src/master/master.hpp 3c957abcb54a0c23b8549c1d21d2d9277791938d 
>   src/master/master.cpp dccd7c635da4b7031cd109bd84e7f17b31777ef1 
>   src/messages/messages.proto 97c45c01dfcea38b1ae555c036d61e10c152c2c8 
>   src/tests/cluster.hpp a56b6541adcdebc5866571bbdbb6828df97b34ec 
>   src/tests/fault_tolerance_tests.cpp 
> 9ac75b1f601e14a3d3d117775f37a4a48b291dc6 
>   src/tests/hierarchical_allocator_tests.cpp 
> 93753d1c04159a04a733927a487eb69505438e32 
>   src/tests/master_allocator_tests.cpp 
> a432d0207e1a92532a495bf9ad2826414ee4f6f0 
>   src/tests/master_authorization_tests.cpp 
> ff706ed6f8537207b30a548b0ce2121c5df71ab9 
>   src/tests/master_slave_reconciliation_tests.cpp 
> e60f601202fcdbb4cafac190e9b09ca6ce925260 
>   src/tests/master_tests.cpp e69348be676a80017062e3abbd15b8008a6009d7 
>   src/tests/mesos.hpp 45e35204d1aa876fa0c871acf0f21afcd5ababe8 
>   src/tests/mesos.cpp c8f43d21b214e75eaac2870cbdf4f03fd18707d1 
>   src/tests/rate_limiting_tests.cpp d5c00b8db30fc529bc984417a632cf99eb50eb28 
> 
> Diff: https://reviews.apache.org/r/31776/diff/
> 
> 
> Testing
> -------
> 
> make check (Mac OS 10.9.5, Ubuntu 14.04)
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>

Reply via email to