----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30338/#review69926 -----------------------------------------------------------
Mostly naming/comments but I think we should make the struct values *not* be optional and clean up the isolator code now too. src/slave/containerizer/isolator.hpp <https://reviews.apache.org/r/30338/#comment114759> Comment that this is derived from the Slave::RunState and the reason why. src/slave/containerizer/isolator.hpp <https://reviews.apache.org/r/30338/#comment114760> The naming is weird - these are taken from the *executor* RunState. Can you modify the naming of variables and comments to make this clearer, e.g., // Executor pid // Executor work directory // ... src/slave/containerizer/isolator.hpp <https://reviews.apache.org/r/30338/#comment114763> These aren't optional from the isolators' perspective so we shouldn't permit them to be optional: see recover() where we continue, i.e., don't try to Isolator::recover(), if the executor.latest.isNone or forkedPid.isNone. This will clean up some checks in the isolators too (and should be done in this review). src/slave/containerizer/isolator.hpp <https://reviews.apache.org/r/30338/#comment114758> can probably just call this pid as there's no need to distinguish from the libprocess pid for the executor? src/slave/containerizer/mesos/containerizer.cpp <https://reviews.apache.org/r/30338/#comment114762> Change this to take the list<ContainerRunState> and construct them in recover()? src/slave/containerizer/mesos/containerizer.cpp <https://reviews.apache.org/r/30338/#comment114761> s/RunStateBase/ContainerRunState/ - Ian Downes On Jan. 27, 2015, 3:51 p.m., Kapil Arya wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/30338/ > ----------------------------------------------------------- > > (Updated Jan. 27, 2015, 3:51 p.m.) > > > Review request for mesos, Ian Downes, nnichddq nnichddq, Till Toenshoff, and > Vinod Kone. > > > Bugs: MESOS-2096 > https://issues.apache.org/jira/browse/MESOS-2096 > > > Repository: mesos-git > > > Description > ------- > > [4/9] Build Mesos Modules outside Mesos source tree. > > The struct is constructed from some fields of RunState and passed on to > Isolators. The goal was to remove the dependency on RunState so that we > can eventually expose slave/containerizer/isolator.hpp as a public header. > > > Diffs > ----- > > src/slave/containerizer/isolator.hpp > a27c3e955ff25b87599af0ac2c97427a88b786f6 > src/slave/containerizer/isolator.cpp > 90a47c4fc8ce2d1a2aa09fa9ad905b76eab74c80 > src/slave/containerizer/isolators/cgroups/cpushare.hpp > 4ded0c4678ad61742a69e14233006a448f3fc3ca > src/slave/containerizer/isolators/cgroups/cpushare.cpp > 90aabb85da452a3a508888f738379a73b7465dc6 > src/slave/containerizer/isolators/cgroups/mem.hpp > 2fa755571b4d21b8b13301fcfd57ae05ea66e6e6 > src/slave/containerizer/isolators/cgroups/mem.cpp > 711d66d7771cac13be831d73af3ef570d6785473 > src/slave/containerizer/isolators/cgroups/perf_event.hpp > e511c3efe4cc4ec13cc74bdcda993477a4db2e36 > src/slave/containerizer/isolators/cgroups/perf_event.cpp > 6f67164d3963769148fb1749d1d590b7b2999fdb > src/slave/containerizer/isolators/filesystem/shared.hpp > 727f63e16fa69293c472a4b6b95fb0be04e689c8 > src/slave/containerizer/isolators/filesystem/shared.cpp > 5c347af803bf512698dd580d6533c0103b289427 > src/slave/containerizer/isolators/namespaces/pid.hpp > 8da6cccff04edf11fa37f5a33648821299cf49d5 > src/slave/containerizer/isolators/namespaces/pid.cpp > fdd430e946c386e37ffc5b24907063180cddac17 > src/slave/containerizer/isolators/network/port_mapping.hpp > 90d19a95092bc18c1077fbaec9ebf9c87291474c > src/slave/containerizer/isolators/network/port_mapping.cpp > b484bbf34060ccc9debd48a3e840c03c8f95de09 > src/slave/containerizer/isolators/posix.hpp > 7a667e3e30712b98484947520b58965d3b768659 > src/slave/containerizer/isolators/posix/disk.hpp > cf4e143eb50cf5ee59ca0d47dd6f8d0a845c3732 > src/slave/containerizer/isolators/posix/disk.cpp > bb1779fd644a33527068868a45cf9c19d7732727 > src/slave/containerizer/mesos/containerizer.cpp > d712278428889ebdfd598537690138329d8464f0 > src/tests/isolator.hpp 2c3a694fade996df6fb679e78f96876a7d32d214 > > Diff: https://reviews.apache.org/r/30338/diff/ > > > Testing > ------- > > make check. > > > Thanks, > > Kapil Arya > >
