mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jpe...@apache.org>
Subject Re: Review Request 55238: Use os::spawn in the CNI isolator.
Date Wed, 11 Jan 2017 15:56:32 GMT


> On Jan. 11, 2017, 10:11 a.m., Jiang Yan Xu wrote:
> > I feel if we keep `os::system()` in the codebase at all, this is one of the few
places it could actually be used... we could eliminate it so we can say there's no references
to `os::systems()` left today but it's a bit harsh to nit-picking on future use like this
in order to keep a "clean state"?

I don't consider this harsh, just a minor, obvious improvement. While `system()` is safe,
`spawn()` is slightly better because it doesn't use the shell. We can't completely eliminate
`system()` because there are places that actually require the shell (eg. the port mapping
CNI plugin).


- James


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


On Jan. 6, 2017, 1:12 a.m., James Peach wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55238/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2017, 1:12 a.m.)
> 
> 
> Review request for mesos, Avinash sridharan and Jiang Yan Xu.
> 
> 
> Bugs: MESOS-6862
>     https://issues.apache.org/jira/browse/MESOS-6862
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Use os::spawn in the CNI isolator.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/isolators/network/cni/cni.cpp ea91c71fdfac48a2fc1d31a0ee088a73244be367

> 
> Diff: https://reviews.apache.org/r/55238/diff/
> 
> 
> Testing
> -------
> 
> `sudo make check` (Fedora 25)
> 
> 
> Thanks,
> 
> James Peach
> 
>


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