mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Guo <guojiannan1...@gmail.com>
Subject Re: Review Request 54898: Added a CHECK in updateFrameworkInfo.
Date Wed, 18 Jan 2017 08:17:27 GMT


> On Jan. 18, 2017, 5:30 a.m., Benjamin Mahler wrote:
> > With respect to the comment, do you know when this check would fail?
> > 
> > E.g. if an agent >= 0.24.0 registers the check holds
> > 
> > Since by committing this I'm taking accountability of it being safe, it would be
great if you could quickly convince me that you did your homework. :)

OK let me try to explain. The whole idea is to replace `framework_id` in favor of `FrameworkInfo.id()`
so we could deprecate `RunTaskMessage.FrameworkID`.

Prior to 0.24.0, when the master sends `RunTaskMessage` to an agent, it may not have `FrameworkID`
in `FrameworkInfo`. In this case, when a master re-construct `FrameworkInfo` after a failover
from agent's `FrameworkInfo`, it does *NOT* have `FrameworkID`.

With MESOS-905 being fixed, we garantee that `FrameworkInfo` always contains `FrameworkID`,
thus this `CHECK` holds.

Does this make sense at all? Please let me know if I'm missing someting here since there's
quite some history to dig up.


- Jay


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


On Jan. 12, 2017, 4:57 p.m., Jay Guo wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54898/
> -----------------------------------------------------------
> 
> (Updated Jan. 12, 2017, 4:57 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler, Guangya Liu, and Joris Van Remoortere.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added a CHECK in updateFrameworkInfo.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp 89b3c394b268a8645885412aeb19980db8d73c69 
> 
> Diff: https://reviews.apache.org/r/54898/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Jay Guo
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message