----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52828/#review154647 -----------------------------------------------------------
src/slave/containerizer/fetcher.cpp (lines 784 - 786) <https://reviews.apache.org/r/52828/#comment224278> This short-circuit leaks the two FDs opened above. - Joseph Wu On Oct. 14, 2016, 11:14 a.m., Megha Sharma wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/52828/ > ----------------------------------------------------------- > > (Updated Oct. 14, 2016, 11:14 a.m.) > > > Review request for mesos and Jiang Yan Xu. > > > Bugs: mesos-5218 > https://issues.apache.org/jira/browse/mesos-5218 > > > Repository: mesos > > > Description > ------- > > Moved the uri.size() check in fetcher so that the chown to > task user of stdout/stderr in sandbox directory happens even > when there is no uri to be fetched. > > > Diffs > ----- > > src/slave/containerizer/fetcher.cpp > 11104d66e6dd05d8eb1d37a2e3250aca19278110 > src/tests/slave_tests.cpp 93b81d3e5b90d8036409e943f598c865fe335bcc > > Diff: https://reviews.apache.org/r/52828/diff/ > > > Testing > ------- > > make check on macOs and linux > > > Thanks, > > Megha Sharma > >
