----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51963/#review149280 -----------------------------------------------------------
src/slave/containerizer/mesos/isolators/namespaces/pid.cpp (line 47) <https://reviews.apache.org/r/51963/#comment216848> Can we also do a check here for the "linux" launcher? Only the linux launcher will allow us to set the pid namespace (as set up in `prepare()`) below. We would still get a failure if some other launcher (e.g. the `PosixLauncher`) was eventually called (because it doesn't know how to deal with namespaces being set), but it's better to just explicitly add the check here for completeness. - Kevin Klues On Sept. 16, 2016, 7:20 p.m., Jie Yu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/51963/ > ----------------------------------------------------------- > > (Updated Sept. 16, 2016, 7:20 p.m.) > > > Review request for mesos, Benjamin Hindman, Gilbert Song, Joseph Wu, and > Kevin Klues. > > > Bugs: MESOS-6145 > https://issues.apache.org/jira/browse/MESOS-6145 > > > Repository: mesos > > > Description > ------- > > The bind mounts in the pid namespace isolator turns out to be > unnecessary as the linux launcher will use freezer to kill all tasks > anyway. It makes the isolator unnecessarily complex, and has a mount > leak bug (MESOS-6145). This patch removes all the unnecessary bind > mounts, making the isolator extremely simple. > > > Diffs > ----- > > src/slave/containerizer/mesos/isolators/namespaces/pid.hpp > 1c74ba2561c113c4611577c541b2baed13717ece > src/slave/containerizer/mesos/isolators/namespaces/pid.cpp > b41e2665e4c9089da55b38aa5d0bedbc1a60e6a8 > src/slave/containerizer/mesos/linux_launcher.cpp > d0f92856780f087908731ec0601692c78339d8a7 > src/tests/containerizer/isolator_tests.cpp > 9bb1e69209f34b18b5b64c3daf5ea26780f2ab74 > src/tests/slave_recovery_tests.cpp 389daf0f5af9a2786619312253f78cd9160b080b > > Diff: https://reviews.apache.org/r/51963/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Jie Yu > >
