> On Nov. 17, 2015, 6:16 a.m., Qian Zhang wrote:
> > src/master/quota_handler.cpp, line 171
> > <https://reviews.apache.org/r/40351/diff/2/?file=1126317#file1126317line171>
> >
> >     For ```request.guarantee()```, I think we need to call ```flatten()``` 
> > to remove role first.

That's exatly right. Good catch!


> On Nov. 17, 2015, 6:16 a.m., Qian Zhang wrote:
> > src/master/quota_handler.cpp, line 211
> > <https://reviews.apache.org/r/40351/diff/2/?file=1126317#file1126317line211>
> >
> >     For ```offer->resources()```, before doing the math, do we need to call 
> > ```flatten()``` to remove role too? For dynamic reservation, in 
> > ```Http::_operation()```, I see we do not call ```flatten()``` for offered 
> > resources too, is it a bug?

In this case everything should be fine. IIUC, there is only one reason why 
`offer->resources()` has non '*' role: it's a statically reserved resource. 
Quota is orthogonal to static reservations, hence we should not rescind those 
offers.

However, I think this check should be removed here. We may rescind more offers 
than necessary to satisfy remaining resources (because we want to rescind from 
a certain number of agents). I'll think about it.


- Alexander


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


On Nov. 16, 2015, 4:46 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40351/
> -----------------------------------------------------------
> 
> (Updated Nov. 16, 2015, 4:46 p.m.)
> 
> 
> Review request for mesos, Bernd Mathiske, Joerg Schad, Joris Van Remoortere, 
> and Joseph Wu.
> 
> 
> Bugs: MESOS-3912
>     https://issues.apache.org/jira/browse/MESOS-3912
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp dc5790a5f0751f5f4644ef1105a0a0c5b2b30fc1 
>   src/master/quota_handler.cpp 3db3c55e51470392f72568a768efe8e66fa3dca0 
> 
> Diff: https://reviews.apache.org/r/40351/diff/
> 
> 
> Testing
> -------
> 
> make check (Mac OS X 10.10.4)
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>

Reply via email to