----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/32583/#review79142 -----------------------------------------------------------
src/slave/slave.cpp <https://reviews.apache.org/r/32583/#comment128278> If we're always making the copy, should we just pass `frameworkInfo_` by value and force the copy at the call-site? Then there's no need for the `_` name. src/slave/slave.cpp <https://reviews.apache.org/r/32583/#comment128280> Isn't this what MergeFrom does? src/slave/slave.cpp <https://reviews.apache.org/r/32583/#comment128276> Is this another instance where we're taking a const reference of a temporary? https://gist.github.com/jmlvanre/8a3de53ae88c2d19b375 - Adam B On April 3, 2015, 7:05 a.m., Kapil Arya wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/32583/ > ----------------------------------------------------------- > > (Updated April 3, 2015, 7:05 a.m.) > > > Review request for mesos, Adam B and Niklas Nielsen. > > > Bugs: MESOS-2558 > https://issues.apache.org/jira/browse/MESOS-2558 > > > Repository: mesos > > > Description > ------- > > The new preferred location for FrameworkID is FrameworkInfo.id. This patchset > achieves this goal by incrementally deprecating other locations for > FrameworkID. > > Here is a plan to deal with the upgrade path: > > For this release (N), we still keep setting RunTaskMessage::framework_id > - this would handle older Slaves with newer Master. > - added code to handle it being unset in the Slave (handles older > Master with newer Slaves). > > In the following release (N+1), stop reading/setting > RunTaskMessage::framework_id > - the previous version would handle the unset case. > > In release N+2, remove the field altogether: > - the previous release is not setting/reading it. > > > Diffs > ----- > > src/messages/messages.proto 97c45c01dfcea38b1ae555c036d61e10c152c2c8 > src/slave/slave.cpp c7e65a6c095963feaa9d5fdbb519c68f8f761d16 > > Diff: https://reviews.apache.org/r/32583/diff/ > > > Testing > ------- > > make check. > > TODO: Test for upgrade path. > > > Thanks, > > Kapil Arya > >
