> On March 24, 2014, 9:39 a.m., Benjamin Hindman wrote:
> > src/slave/slave.cpp, line 238
> > <https://reviews.apache.org/r/19499/diff/2/?file=530732#file530732line238>
> >
> >     Do we ever delete these? They will leak in tests.

in Slave::finalize.


> On March 24, 2014, 9:39 a.m., Benjamin Hindman wrote:
> > src/slave/slave.cpp, lines 142-150
> > <https://reviews.apache.org/r/19499/diff/2/?file=530732#file530732line142>
> >
> >     This introduces a race on frameworks, namely the metrics/statistics 
> > might try and 'get' the value of this gauge while the master is 
> > simultaneously updating these values. We'll want to be defer'ing here. This 
> > will definitely complicate the code in http.cpp, but that should be 
> > deprecated anyway. One strategy here might be to just keep the old 
> > statistics and introduce new metrics along side and then we can eventually 
> > drop the old stuff. Another idea might be to introduce a call on gauge that 
> > returns the last cached value so it can be used synchronously in http.cpp.

Changed Gauge to take a Deferred object.


- Dominic


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


On March 20, 2014, 3:52 p.m., Dominic Hamon wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19499/
> -----------------------------------------------------------
> 
> (Updated March 20, 2014, 3:52 p.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-1133
>     https://issues.apache.org/jira/browse/MESOS-1133
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> see summary
> 
> 
> Diffs
> -----
> 
>   src/slave/http.cpp 594032da1b2edd47961cd8201acd093b22fa30ae 
>   src/slave/slave.hpp 01b80dfc1dd55edd6d2f722ff1d4f1bf4d96f28e 
>   src/slave/slave.cpp d8d3e0fa54972201d72b2650ec0ba922a4912d54 
> 
> Diff: https://reviews.apache.org/r/19499/diff/
> 
> 
> Testing
> -------
> 
> make check. ran locally and compared stats.json endpoint to /metrics/ 
> endpoint.
> 
> 
> Thanks,
> 
> Dominic Hamon
> 
>

Reply via email to