Re: Review Request 70053: Used std::string as buffer instead of manually managed dynamic array.

2019-02-25 Thread Benjamin Mahler
int_fd fd = ::mkstemp(&_path[0]); ... return _path; ``` - Benjamin Mahler On Feb. 25, 2019, 9:20 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To

Re: Review Request 70046: Prevented closing invalid file descriptors.

2019-02-25 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/70046/#review213186 --- Ship it! Ship It! - Benjamin Mahler On Feb. 25, 2019, 9:19

Re: Review Request 70046: Prevented closing invalid file descriptors.

2019-02-25 Thread Benjamin Mahler
ome just `std::string` without the `Try`. - Benjamin Mahler On Feb. 23, 2019, 8:41 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To re

Review Request 69990: Added a regression test for MESOS-9555.

2019-02-14 Thread Benjamin Mahler
Diff: https://reviews.apache.org/r/69990/diff/1/ Testing --- Ran in repetition Thanks, Benjamin Mahler

Review Request 69989: Fixed an allocator crash during reservation tracking.

2019-02-14 Thread Benjamin Mahler
/mesos/hierarchical.cpp 862dbb90bdfa39ead4b185104a308eabe249d734 Diff: https://reviews.apache.org/r/69989/diff/1/ Testing --- make check, regression test added in subsequent patch Thanks, Benjamin Mahler

Re: Review Request 69890: Added test for per-framework, per-role minimal allocatable resources.

2019-02-14 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69890/#review212842 --- Ship it! Ship It! - Benjamin Mahler On Feb. 14, 2019, 8:48

Re: Review Request 69818: Added offer filters to static framework configuration.

2019-02-14 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69818/#review212841 --- Ship it! Ship It! - Benjamin Mahler On Feb. 14, 2019, 8:45

Re: Review Request 69862: Validated static framework offer filters.

2019-02-14 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69862/#review212840 --- Ship it! Ship It! - Benjamin Mahler On Feb. 14, 2019, 8:46

Re: Review Request 69862: Validated static framework offer filters.

2019-02-14 Thread Benjamin Mahler
Maybe also a comment: ``` We disallow an empty quantity since that is equivalent to an empty set (i.e. override of "no minimum") ``` - Benjamin Mahler On Feb. 13, 2019, 10:31 p.m., Benjamin Bannier wrote: > >

Re: Review Request 69981: Fixed a flaky test `MasterQuotaTest.RemoveSingleQuota`.

2019-02-14 Thread Benjamin Mahler
ow so it's clear - Benjamin Mahler On Feb. 14, 2019, 12:27 a.m., Meng Zhu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > h

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-02-13 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69821/#review212804 --- Ship it! Ship It! - Benjamin Mahler On Feb. 13, 2019, 3:44

Re: Review Request 69890: Added test for per-framework, per-role minimal allocatable resources.

2019-02-12 Thread Benjamin Mahler
> On Feb. 8, 2019, 8:47 p.m., Benjamin Mahler wrote: > > src/tests/hierarchical_allocator_tests.cpp > > Lines 2357-2374 (patched) > > <https://reviews.apache.org/r/69890/diff/2/?file=2124579#file2124579line2357> > > > > Both "empty set&q

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-02-12 Thread Benjamin Mahler
this seems to be moving the break from above down to here. Can we move it back up so that this diff is very minimal (i.e. like the changes in the quota loop above) - Benjamin Mahler On Feb. 11, 2019, 3:46 p.m., Benjamin Bannier wrote: > > ---

Re: Review Request 69938: Add resource decorator hook to implicitly allocate mandatory resources.

2019-02-12 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69938/#review212756 --- Ship it! Ship It! - Benjamin Mahler On Feb. 11, 2019, 10:27

Re: Review Request 69938: Add resource decorator hook to implicitly allocate mandatory resources.

2019-02-12 Thread Benjamin Mahler
> On Feb. 11, 2019, 6:58 p.m., Benjamin Mahler wrote: > > Nice patch, thanks Clément. Just a few minor comments below and we should > > be good to go. > > > > Just as an aside, the current hook interfaces are rather inefficient > > (copies the entire ta

Re: Review Request 69942: Added a test for MESOS-9554.

2019-02-12 Thread Benjamin Mahler
``` Looks good, thanks - Benjamin --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69942/#review212751 --- On Feb. 11, 2019, 6:

Re: Review Request 69938: Add resource decorator hook to implicitly allocate mandatory resources.

2019-02-11 Thread Benjamin Mahler
sources or Resources would all be ok here src/tests/hook_tests.cpp Lines 307-309 (patched) <https://reviews.apache.org/r/69938/#comment298593> Doesn't look like this is needed, the option being none will be caught below - Benjamin Mahler On Feb. 10, 2019, 11:

Review Request 69942: Added a test for MESOS-9554.

2019-02-11 Thread Benjamin Mahler
repetition. Thanks, Benjamin Mahler

Re: Review Request 69902: Fixed incorrect skipping in the allocation loops.

2019-02-08 Thread Benjamin Mahler
hanks, Benjamin Mahler

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-02-08 Thread Benjamin Mahler
saves having to execute a few lines at the top of the loop? Doesn't seem worth it? - Benjamin Mahler On Feb. 8, 2019, 11:32 a.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-ma

Re: Review Request 69890: Added test for per-framework, per-role minimal allocatable resources.

2019-02-08 Thread Benjamin Mahler
ld we validate that all entries are non-empty? There doesn't seem to be any point in allowing an empty entry, since any single empty entry renders it equivalent to the empty set case? - Benjamin Mahler On Feb. 8, 2019, 11:32 a.m., Benjamin Bannier wrote: > > ---

Re: Review Request 69889: Stored static framework offer filters in allocator framework class.

2019-02-08 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69889/#review212677 --- Ship it! Ship It! - Benjamin Mahler On Feb. 8, 2019, 11:32

Re: Review Request 69902: Fixed incorrect skipping in the allocation loops.

2019-02-06 Thread Benjamin Mahler
below? > > ditto blew in the second stage > > Benjamin Mahler wrote: > This condition is for **break**ing the role loop, whereas > allocatableTo(role) would be a continue. > > I initially had an **additional** continue-based allocatableTo(role) > check a

Re: Review Request 69902: Fixed incorrect skipping in the allocation loops.

2019-02-06 Thread Benjamin Mahler
below? > > ditto blew in the second stage > > Benjamin Mahler wrote: > This condition is for **break**ing the role loop, whereas > allocatableTo(role) would be a continue. > > I initially had an **additional** continue-based allocatableTo(role) > check a

Re: Review Request 69902: Fixed incorrect skipping in the allocation loops.

2019-02-06 Thread Benjamin Mahler
offeredSharedResources[slaveId] = agentOfferedShared > > } > > > > ditto below in the second stage Looks complicated, would definitely want to make sure that there's a significant performance benefit to that to justify it? - Benjamin -

Review Request 69900: Reduced unnecessary agent lookups in the allocation loops.

2019-02-05 Thread Benjamin Mahler
Description --- Reduced unnecessary agent lookups in the allocation loops. Diffs - src/master/allocator/mesos/hierarchical.cpp bb9a9c95979f36c0564af5b3babb1c43077a363b Diff: https://reviews.apache.org/r/69900/diff/1/ Testing --- make check Thanks, Benjamin Mahler

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-02-05 Thread Benjamin Mahler
d then rebase this against master. - Benjamin Mahler On Feb. 5, 2019, 4:38 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit: &

Review Request 69902: Fixed incorrect skipping in the allocation loops.

2019-02-05 Thread Benjamin Mahler
1 offers ``` Thanks, Benjamin Mahler

Re: Review Request 69889: Stored static framework offer filters in allocator framework class.

2019-02-05 Thread Benjamin Mahler
mework` struct) that this field needs to be updated when `HierarchicalAllocatorProcess::updateFramework(...)` is called. Can we also have a test ensuring updateFramework correctly updates it? - Benjamin Mahler On Feb. 4, 2019, 10:05 p.m., Benjamin Bannier

Re: Review Request 69890: Added test for per-framework, per-role minimal allocatable resources.

2019-02-05 Thread Benjamin Mahler
a mixture of "minimal" and "minimum" used? src/tests/hierarchical_allocator_tests.cpp Lines 2378-2381 (patched) <https://reviews.apache.org/r/69890/#comment298390> This seems like the "EmptyMinAllocatable" case and th

Re: Review Request 69889: Stored static framework offer filters in allocator framework class.

2019-02-05 Thread Benjamin Mahler
d both ways by accident (which becomes a problem if we ever do mutation). - Benjamin Mahler On Feb. 4, 2019, 10:05 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://re

Re: Review Request 69889: Stored static framework offer filters in allocator framework class.

2019-02-05 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69889/#review212561 --- Ship it! Ship It! - Benjamin Mahler On Feb. 4, 2019, 10:05

Re: Review Request 69885: Sped up some resource benchmark test instantiations.

2019-02-04 Thread Benjamin Mahler
4155 (patched) <https://reviews.apache.org/r/69885/#comment298335> "Invalid"? src/tests/resources_tests.cpp Line 4148 (original), 4176 (patched) <https://reviews.apache.org/r/69885/#comment298336> CHECK_NOTERROR rather than naked get? - Benjamin Mahler On Feb

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-02-04 Thread Benjamin Mahler
ework.cpp Lines 504 (patched) <https://reviews.apache.org/r/69821/#comment298325> Ah, here it is, should be in the earlier review? - Benjamin Mahler On Feb. 4, 2019, 8:37 p.m., Benjamin Bannier wrote: > > --- > This is an

Re: Review Request 69818: Added offer filters to static framework configuration.

2019-02-04 Thread Benjamin Mahler
(patched) <https://reviews.apache.org/r/69818/#comment298324> The comment you mentioned seems to be missing? - Benjamin Mahler On Feb. 4, 2019, 11:14 a.m., Benjamin Bannier wrote: > > --- > This is an automatically gener

Re: Review Request 69885: Sped up some resource benchmark test instantiations.

2019-02-04 Thread Benjamin Mahler
d then indexing into that? https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#sharing-resources-between-tests-in-the-same-test-suite - Benjamin Mahler On Feb. 4, 2019, 12:55 p.m., Benjamin Bannier

Re: Review Request 69862: Validated static framework offer filters.

2019-01-31 Thread Benjamin Mahler
(patched) <https://reviews.apache.org/r/69862/#comment298250> Should we also disallow NaN and +inf? (along with tests for these cases?) - Benjamin Mahler On Jan. 31, 2019, 3:15 p.m., Benjamin Bannier wrote: > > ---

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-01-31 Thread Benjamin Mahler
> On Jan. 29, 2019, 8:37 p.m., Benjamin Mahler wrote: > > src/tests/hierarchical_allocator_tests.cpp > > Lines 2336 (patched) > > <https://reviews.apache.org/r/69821/diff/2/?file=2123197#file2123197line2336> > > > > FrameworkEmptyMin

Re: Review Request 69818: Added offer filters to static framework configuration.

2019-01-31 Thread Benjamin Mahler
tps://reviews.apache.org/r/69818/#comment298248> Can you guard this with a has check? As it stands it will produce a different message if newInfo has it unset (info will have it set vs newInfo has it not set) - Benjamin Mahler On Jan. 31, 2019, 3:29 p.m., Benjamin Bannier

Re: Review Request 69861: Declared `HierarchicalAllocatorProcess::allocatable` `const`.

2019-01-30 Thread Benjamin Mahler
> On Jan. 30, 2019, 4:09 p.m., Benjamin Mahler wrote: > > Thanks! Probably don't need the duplicate description in the commit message? > > Benjamin Bannier wrote: > The way we have our reviewboard interaction set up, not manually > adjusting a redundant descript

Re: Review Request 69861: Declared `HierarchicalAllocatorProcess::allocatable` `const`.

2019-01-30 Thread Benjamin Mahler
ption in the commit message? - Benjamin Mahler On Jan. 30, 2019, 3:03 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.a

Re: Review Request 69821: Enforced minimal allocatable resources in the hierarchical allocator.

2019-01-29 Thread Benjamin Mahler
apache.org/r/69821/#comment298192> Hm.. this doesn't quite look right to me, it seems if a framework is setting the `min_allocatable_resources` field, it should override, but that's not happening here? - Benjamin Mahler On Jan. 29, 2019, 4:20 p.m., Benjamin Bannier wrote:

Re: Review Request 69818: Added offer filters resources to static framework configuration.

2019-01-29 Thread Benjamin Mahler
tched) <https://reviews.apache.org/r/69818/#comment298185> Can we add some validation somewhere to ensure that negative value scalars are not provided? - Benjamin Mahler On Jan. 29, 2019, 4:24 p.m., Benjamin Bannier wrote: > >

Re: Review Request 69818: Added offer filters resources to static framework configuration.

2019-01-29 Thread Benjamin Mahler
> On Jan. 29, 2019, 3:09 a.m., Benjamin Mahler wrote: > > include/mesos/mesos.proto > > Lines 1519 (patched) > > <https://reviews.apache.org/r/69818/diff/1/?file=2121448#file2121448line1519> > > > > I'm not sure if this gives much information t

Re: Review Request 69818: Added minimal allocatable resources to framework information.

2019-01-28 Thread Benjamin Mahler
put this on the variable instead of the message? Seems worth reconciling this comment with the flag help string? - Benjamin Mahler On Jan. 23, 2019, 12:17 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-ma

Re: Review Request 69819: Added equality operator for `ResourceQuantities`.

2019-01-28 Thread Benjamin Mahler
order to determine (1) whether to store zeros, (2) how to evaluate equality and containment between two quantities. Thoughts? - Benjamin Mahler On Jan. 23, 2019, 12:12 p.m., Benjamin Bannier wrote: > > --- > This is an auto

Re: Review Request 69082: Correctly propagated `close` failures in some instances.

2019-01-18 Thread Benjamin Mahler
make it fit on one line? 3rdparty/stout/include/stout/protobuf.hpp Line 197 (original), 197-203 (patched) <https://reviews.apache.org/r/69082/#comment297786> ditto here - Benjamin Mahler On Jan. 16, 2019, 1:06 p.m., Benjamin Bannier wrote: > > ---

Re: Review Request 69082: Correctly propagated `close` failures in some instances.

2019-01-18 Thread Benjamin Mahler
> On Jan. 15, 2019, 6:22 p.m., Benjamin Mahler wrote: > > Should we be surfacing a close EINTR as an error or let that be silent? > > I think these errors need some message pre-fixing? E.g. > > > > ``` > > Failed to close '3': Bad file number >

Re: Review Request 69775: Updated master fail() logging from FATAL to ERROR.

2019-01-16 Thread Benjamin Mahler
AILURE) << ...; ? } ``` Some cases don't even handle the failures? :O E.g. https://github.com/apache/mesos/blob/f01853aea4eaa3df6dec3f7342e5583f5addd07d/src/master/master.cpp#L1745-L1746 Ideally, the return type of the registry apply operation would allow us to distinguish between timeo

Re: Review Request 69588: Removed outdated authorization logic for offer operations.

2019-01-15 Thread Benjamin Mahler
s 3940-3943 (original), 3959-3962 (patched) <https://reviews.apache.org/r/69588/#comment297622> Ditto `Resources::reservationRole` and `*` being invalid (but I guess we don't care here?) - Benjamin Mahler On Dec. 19, 2018, 11:20 p.m., Chun-Hung Hsiao wrote: > > ---

Re: Review Request 69082: Correctly propagated `close` failures in some instances.

2019-01-15 Thread Benjamin Mahler
ty/stout/include/stout/os/write.hpp Line 140 (original), 140 (patched) <https://reviews.apache.org/r/69082/#comment297615> newline above this to be consistent with the rest of the formatting in this function? ditto for the others - Benjamin Mahler On

Re: Review Request 69729: Removed unused class fields in the allocator.

2019-01-11 Thread Benjamin Mahler
description that these are now duplicated via the options struct and used through that? Did I understand right? - Benjamin Mahler On Jan. 12, 2019, 12:12 a.m., Meng Zhu wrote: > > --- > This is an automatically generated e-mail. To rep

Re: Review Request 69724: Updated configuration documentation to include random sorter.

2019-01-11 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69724/#review211907 --- Ship it! Ship It! - Benjamin Mahler On Jan. 11, 2019, 9:48

Re: Review Request 69662: Displayed resource provider information in the Mesos webui.

2019-01-09 Thread Benjamin Mahler
he.org/r/69662/#comment297386> This seems not very readable (or at least I struggled a bit with it), can we use underscore js clone? https://underscorejs.org/#clone ``` provider.total_resources_full = _.clone(provider.total_resources); ``` - Benjamin Mahler On Ja

Re: Review Request 69689: Fixed a flaky master volume authorization failure test.

2019-01-08 Thread Benjamin Mahler
------ On Jan. 9, 2019, 2:53 a.m., Benjamin Mahler wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/69689/ >

Re: Review Request 69689: Fixed a flaky master volume authorization failure test.

2019-01-08 Thread Benjamin Mahler
/69689/diff/2/ Changes: https://reviews.apache.org/r/69689/diff/1-2/ Testing --- Ran in repetition before (could trigger the failure) and after (no failures yet). Thanks, Benjamin Mahler

Re: Review Request 69662: Displayed resource provider information in the Mesos webui.

2019-01-07 Thread Benjamin Mahler
in the screenshot and it appears to be the case). is it missing some attributes that the reservation table has? - Benjamin Mahler On Jan. 7, 2019, 9:02 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e

Review Request 69689: Fixed a flaky master volume authorization failure test.

2019-01-07 Thread Benjamin Mahler
after (no failures yet). Thanks, Benjamin Mahler

Re: Review Request 69662: Displayed resource provider information in the Mesos webui.

2019-01-07 Thread Benjamin Mahler
ing provided? Maybe the column should just be 'Resources' and a stringified version is shown? - Benjamin Mahler On Jan. 4, 2019, 10:14 a.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e

Re: Review Request 69599: Pulled up the resource quantities class for more general use.

2019-01-07 Thread Benjamin Mahler
> On Jan. 7, 2019, 5:14 a.m., Benjamin Mahler wrote: > > src/master/allocator/sorter/drf/sorter.cpp > > Line 671 (original), 671 (patched) > > <https://reviews.apache.org/r/69599/diff/4/?file=2117856#file2117856line671> > > > > Why do you say to consi

Re: Review Request 69599: Pulled up the resource quantities class for more general use.

2019-01-07 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69599/#review211727 --- Ship it! Ship It! - Benjamin Mahler On Jan. 7, 2019, 6:23

Re: Review Request 69599: Pulled up the resource quantities class for more general use.

2019-01-06 Thread Benjamin Mahler
But in cases like this, where we're actually inside the guarded block, just use -> ``` if (allocation.isSome()) { share = std::max(share, allocation->value() / scalar.value()); ``` - Benjamin Mahler On J

Re: Review Request 69600: Added tests for `ResourceQuantities`.

2019-01-06 Thread Benjamin Mahler
(patched) <https://reviews.apache.org/r/69600/#comment297240> Do you want to add a comment above this section of invalid cases, as done on the others? - Benjamin Mahler On Jan. 6, 2019, 7:33 p.m., Meng Zhu wrote: > > ---

Re: Review Request 69673: Disallowed nan, inf and so on when parsing Value::Scalar.

2019-01-06 Thread Benjamin Mahler
unfortunate.. if the user typos in "3.1a" it will fall into TEXT :( src/tests/values_tests.cpp Lines 93-103 (patched) <https://reviews.apache.org/r/69673/#comment297238> You could group each pair without a newline? Do you also want to add a subnormal case? src/v1/values.cpp L

Re: Review Request 69603: Extended `min_allocatable_resources` flag to cover non-scalar resources.

2019-01-04 Thread Benjamin Mahler
r.cpp Lines 750 (patched) <https://reviews.apache.org/r/69603/#comment297203> Probably just want to use `*resourceQuantities` since we handle the error case above. - Benjamin Mahler On Jan. 4, 2019, 8:54 p.m., Meng Zhu wrote: > >

Re: Review Request 69601: Added a `Resources` method `contains(ResourceQuantities)`.

2019-01-04 Thread Benjamin Mahler
foreach ( src/v1/resources.cpp Lines 1538-1540 (patched) <https://reviews.apache.org/r/69601/#comment297195> Maybe: ``` foreach (const Resource& r, get(quantity.first)) { ``` - Benjamin M

Re: Review Request 69600: Added tests for `ResourceQuantities`.

2019-01-04 Thread Benjamin Mahler
o reply, visit: > https://reviews.apache.org/r/69600/ > ------- > > (Updated Jan. 4, 2019, 8:14 p.m.) > > > Review request for mesos and Benjamin Mahler. > > > Repository: mesos > > > Description

Re: Review Request 69599: Pulled up a new class `ResourceQuantities`.

2019-01-04 Thread Benjamin Mahler
.get(resourceName) .getOrElse(Value::Scalar()); // Default to zero. share = std::max(share, allocation.value() / total.value()); ``` src/master/allocator/sorter/random/sorter.hpp Line 176 (original)

Re: Review Request 69603: Extended `min_allocatable_resources` flag to cover non-scalar resources.

2019-01-03 Thread Benjamin Mahler
rg/r/69603/#comment297045> Maybe you can line up these contains comments to make it a bit more readable? - Benjamin Mahler On Dec. 20, 2018, 7 a.m., Meng Zhu wrote: > > --- > This is an automatically generated e-mail. To reply,

Re: Review Request 69600: Added tests for class `Quantity` and `ResourceQuantities`.

2019-01-03 Thread Benjamin Mahler
> --- > > (Updated Dec. 31, 2018, 5:52 a.m.) > > > Review request for mesos and Benjamin Mahler. > > > Repository: mesos > > > Description > --- > > Added par

Re: Review Request 69601: Added a `Resources` method `contains(ResourceQuantities)`.

2019-01-03 Thread Benjamin Mahler
onEmptyResources.contains(emptyQuantities); auto resources = [](const string& s) { ... }; auto quantities = [](const string& s) { ... }; // Can easily read what's being checked: EXPECT_TRUE(resources("cpus:1;mem:2") .contains(quantities("

Re: Review Request 69599: Added a new class `ResourceQuantities`.

2019-01-02 Thread Benjamin Mahler
st == name) { break; } if (it->first > name) { it = quantities.insert( it, std::make_pair(name, Value::Scalar())); break; } } it->second += scalar;

Re: Review Request 69398: Added validation for framework IDs.

2018-12-19 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69398/#review211450 --- Ship it! Ship It! - Benjamin Mahler On Dec. 17, 2018, 8:43

Re: Review Request 69557: Tested framework subscription with set but empty ID.

2018-12-19 Thread Benjamin Mahler
<https://reviews.apache.org/r/69557/#comment296586> Should we clarify that it's subscribe? FrameworkSubscribeEmptyId - Benjamin Mahler On Dec. 17, 2018, 8:43 a.m., Benjamin Bannier wrote: > > --- > This is an automati

Re: Review Request 69588: Removed outdated authorization logic for offer operations.

2018-12-19 Thread Benjamin Mahler
88/#comment296564> Ditto here. src/master/master.cpp Lines 3809-3814 (original), 3799-3804 (patched) <https://reviews.apache.org/r/69588/#comment296565> Ditto here. src/master/master.cpp Line 3817 (original), 3807 (

Re: Review Request 69557: Removed redundant handling of empty framework IDs.

2018-12-12 Thread Benjamin Mahler
t; to "now" occurred? Is it due to your other pending patches, or was this something we changed in a previous release? If it's part of your pending patches, we might have to keep the empty == unset behavior, since I'm not sure which frameworks were relying on that. - Benjamin Ma

Re: Review Request 69397: Used high-level `FrameworkInfo` validation function in tests.

2018-12-11 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69397/#review211211 --- Ship it! Ship It! - Benjamin Mahler On Dec. 11, 2018, 1:48

Re: Review Request 69398: Added validation for framework IDs.

2018-12-11 Thread Benjamin Mahler
os/blob/1.7.0/src/master/master.cpp#L337-L338 So today it's ` + "-N"`? - Benjamin Mahler On Dec. 11, 2018, 1:48 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To re

Re: Review Request 69098: Added a benchmark to compare quota and nonquota allocation performance.

2018-12-05 Thread Benjamin Mahler
(patched) <https://reviews.apache.org/r/69098/#comment295930> Do we need these two start outputs? It seems like they clutter the output to me. src/tests/hierarchical_allocator_benchmarks.cpp Lines 804-807 (patched) <https://reviews.apache.org/r/69098/#comment295931> Maybe

Re: Review Request 69514: Added gauge metric for operator event stream subscribers.

2018-12-05 Thread Benjamin Mahler
allocator (and more) to push gauges. Can you update this to use a push gauge? - Benjamin Mahler On Dec. 5, 2018, 10:03 p.m., Joseph Wu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://review

Re: Review Request 69098: Added a benchmark to compare quota and nonquota allocation performance.

2018-12-05 Thread Benjamin Mahler
> On Nov. 2, 2018, 10:23 p.m., Benjamin Mahler wrote: > > Hm.. why is this one not just extending the one you added in the previous > > review? > > Meng Zhu wrote: > This benchmark compares quota vs. non-quota. For non-quota setting, there > will be no chopp

Re: Review Request 68138: Added tests to ensure correct quota accounting.

2018-12-04 Thread Benjamin Mahler
ps://reviews.apache.org/r/68138/#comment295875> Maybe: QuotaAccountingUnreserveAllocatedResources? src/tests/hierarchical_allocator_tests.cpp Lines 1775 (patched) <https://reviews.apache.org/r/68138/#comment295876> Ditto here, the quota setting is actually above this comment?

Re: Review Request 69398: Added validation for `FrameworkID`s.

2018-12-03 Thread Benjamin Mahler
for windows recently with executor IDs. - Benjamin Mahler On Nov. 19, 2018, 3:52 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache

Re: Review Request 69451: Fixed master crash when executors send messages to recovered frameworks.

2018-11-28 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69451/#review210931 --- Ship it! Ship It! - Benjamin Mahler On Nov. 28, 2018, 12:40

Re: Review Request 69464: Made the `createTask` helper work for both v0 and v1 API.

2018-11-27 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69464/#review210915 --- Ship it! Ship It! - Benjamin Mahler On Nov. 27, 2018, 11:05

Re: Review Request 69451: Fixed master crash when executors send messages to recovered frameworks.

2018-11-27 Thread Benjamin Mahler
connected -> one of `http` or `pid` // is set. } if (http.isSome()) { if (!http->send(message)) { LOG(WARNING) << "Unable to send event to framework " << *this << ":" << " connect

Re: Review Request 69452: Added a test for executors sending messages to recovered frameworks.

2018-11-27 Thread Benjamin Mahler
> On Nov. 27, 2018, 9:16 p.m., Benjamin Mahler wrote: > > src/tests/master_tests.cpp > > Lines 3850 (patched) > > <https://reviews.apache.org/r/69452/diff/1/?file=2110508#file2110508line3850> > > > > Maybe a TODO to simplify this test by having a test

Re: Review Request 69452: Added a test for executors sending messages to recovered frameworks.

2018-11-27 Thread Benjamin Mahler
here? seems like this should be a different patch? - Benjamin Mahler On Nov. 27, 2018, 4:58 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generated e-

Re: Review Request 69451: Fixed master crash when executors send messages to recovered frameworks.

2018-11-27 Thread Benjamin Mahler
s? My read of the http/pid state comment is that it will be set based on the last connection, therefore the only time one of them won't be set is the recovered case (the change that broke the original one-being-set invariant). - Benjamin Mahler On Nov. 27, 2018, 4:58 a.m., Chun-Hung Hsi

Review Request 69280: Fixed flakiness in `PartitionTest.TaskCompletedOnPartitionedAgent`.

2018-11-07 Thread Benjamin Mahler
tests/partition_tests.cpp 788d3b988cf7de206f295bffdc0376e7e1242349 Diff: https://reviews.apache.org/r/69280/diff/1/ Testing --- Ran in repetition. Thanks, Benjamin Mahler

Review Request 69276: Fixed flakiness in `FsTest.Used`.

2018-11-07 Thread Benjamin Mahler
/filesystem_tests.cpp 29f06f3dd126007d6b3a81f31795270f0654b847 Diff: https://reviews.apache.org/r/69276/diff/1/ Testing --- make check Thanks, Benjamin Mahler

Review Request 69277: Updated autotools build to use parallel test runner by default.

2018-11-07 Thread Benjamin Mahler
Diff: https://reviews.apache.org/r/69277/diff/1/ Testing --- Configured and ensured the parallel test runner was the default when using make check. Thanks, Benjamin Mahler

Re: Review Request 69275: Added environment sanity check to parallel test runner.

2018-11-07 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69275/#review210374 --- Ship it! Ship It! - Benjamin Mahler On Nov. 7, 2018, 8:30

Re: Review Request 69274: Reduced default oversubscription in parallel test runner.

2018-11-07 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69274/#review210373 --- Ship it! Ship It! - Benjamin Mahler On Nov. 7, 2018, 8:30

Re: Review Request 67958: Added LibprocessTest for easily configuring the library for a test.

2018-11-06 Thread Benjamin Mahler
> On Nov. 6, 2018, 5:58 a.m., Benjamin Mahler wrote: > > Ah, unfortunately, the use of `os::setenv` is going to break our parallel > > test runner :( > > > > We could have reinitialize take a flags object? > > Benjamin Bannier wrote: > Not sure why this

Re: Review Request 67959: Added support for instrumenting processes.

2018-11-05 Thread Benjamin Mahler
dequeued/messages: 1 ``` Also exposing a queue size directly (via a pull guauge that subtracts the counters) seems like a nice addition to this. Thoughts? - Benjamin Mahler On July 18, 2018, 1:28 a.m., Benjamin Hindman wrote: > > ---

Re: Review Request 67958: Added LibprocessTest for easily configuring the library for a test.

2018-11-05 Thread Benjamin Mahler
nts running tests in parallel :( Is there any way to avoid this? - Benjamin Mahler On July 18, 2018, 1:19 a.m., Benjamin Hindman wrote: > > --- > This is an automatically generate

Re: Review Request 67957: Refactored TemporaryDirectoryTest to be a mixin.

2018-11-05 Thread Benjamin Mahler
iews.apache.org/r/67957/#comment295000> s/do// s/on// - Benjamin Mahler On July 18, 2018, 1:19 a.m., Benjamin Hindman wrote: > > --- > This is an automatically

Re: Review Request 67956: Removed some generic flag parsers that are now in stout.

2018-11-05 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67956/#review210340 --- Ship it! Ship It! - Benjamin Mahler On July 18, 2018, 1:19

Re: Review Request 67955: Added some new generic flag parsers.

2018-11-05 Thread Benjamin Mahler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67955/#review210339 --- Ship it! Ship It! - Benjamin Mahler On July 18, 2018, 1:19

<    5   6   7   8   9   10   11   12   13   14   >