> On Oct. 2, 2013, 5:54 a.m., Ben Mahler wrote:
> > include/mesos/mesos.proto, lines 372-373
> > <https://reviews.apache.org/r/14434/diff/1/?file=360207#file360207line372>
> >
> >     I believe adding mutable fields to TaskInfo may be problematic as in 
> > general the various components assume that _Info protobufs are immutable.
> >     
> >     A while back I had filed MESOS-296 in the same spirit: what if we added 
> > timestamps to status updates? Status updates would still remain immutable 
> > in the system. However, it's likely a bit trickier to show them in the 
> > webui since the master does not expose status updates. One approach is to 
> > have the master / slave track the {start,finish}_times in memory in their 
> > respective Task structs. Thoughts?
> >     
> >     Even better would be if the webui could how a history of state 
> > transitions (rather than status updates given how status updates can be 
> > used as a messaging mechanism).
> 
> Brenden Matthews wrote:
>     I see, that was indeed a while back.
>     
>     If we add the same values to the in-memory structs, how do we report the 
> data back to the web UI?  Currently the code in src/master/http.cpp just 
> pulls the values from the `Task` message.  Is it safe to treat `Task` as 
> mutable?
> 
> Ben Mahler wrote:
>     +1 to benh's comment on the email thread, I think adding timestamp to 
> TaskStatus would be a good first step here.

After looking at the code, it seems unnecessary to add a timestamp to 
TaskStatus, since the StatusUpdate message already includes a timestamp (which 
I've used in my latest revision).


- Brenden


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


On Oct. 2, 2013, 9:17 p.m., Brenden Matthews wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14434/
> -----------------------------------------------------------
> 
> (Updated Oct. 2, 2013, 9:17 p.m.)
> 
> 
> Review request for mesos.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Added timestamps to TaskInfo.
> 
> TaskInfo now includes a start/finish timestamp for each task.  This is
> particularly for debugging framework problems.
> 
> Review: https://reviews.apache.org/r/14434
> 
> 
> Diffs
> -----
> 
>   include/mesos/mesos.proto 957576bbc1c73513a9591194d017f76fe562a616 
>   src/master/http.cpp f2a535a002f07784db724f6fdedfb26b271d6327 
>   src/master/master.cpp ce8365f082a5f96ef64e33e526cb5047dff52127 
>   src/messages/messages.proto c599eb2f1105baf5253ab8c982f48f30e798b94f 
>   src/webui/master/static/framework.html 
> 6e5cd9f9e48597c7894d6381377c8a291014e8f3 
>   src/webui/master/static/frameworks.html 
> 7c243d47d80e7c74fcac938d012b91b67b995490 
> 
> Diff: https://reviews.apache.org/r/14434/diff/
> 
> 
> Testing
> -------
> 
> `make check`, tested in staging, and manual web UI testing.
> 
> 
> Thanks,
> 
> Brenden Matthews
> 
>

Reply via email to