----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60626/#review187356 -----------------------------------------------------------
Summary and description need to follow Mesos standards (past-tense, full-sentence summary, with description in the body). src/hdfs/hdfs.cpp Lines 117-118 (original), 117-118 (patched) <https://reviews.apache.org/r/60626/#comment264316> I believe that [this overload](https://github.com/apache/mesos/blob/5e5ed4db273179101eee90d752c1622315987949/3rdparty/libprocess/include/process/subprocess.hpp#L410) implies the subprocess's stdout and stderr FDs are not directed toward the parent's, and so the `2>&1` is unnecessary. Test it to be sure, but that's what I'm reading. src/hdfs/hdfs.cpp Lines 118-120 (original), 118-123 (patched) <https://reviews.apache.org/r/60626/#comment264312> We try to avoid single character variable names (exceptions being like `i` or `x` in iterations). This should proably be `subprocess`, or `hadoop_version`, or something. src/hdfs/hdfs.cpp Lines 125-128 (patched) <https://reviews.apache.org/r/60626/#comment264313> Why `o_status`, why not just `status`? src/hdfs/hdfs.cpp Lines 126 (patched) <https://reviews.apache.org/r/60626/#comment264315> We can _probably_ skip this particular check, in the specicial case of the `status()` of a `process::subprocess`, because of [this (supposed) guarantee](https://github.com/apache/mesos/blob/5e5ed4db273179101eee90d752c1622315987949/3rdparty/libprocess/include/process/subprocess.hpp#L292). src/hdfs/hdfs.cpp Lines 130-134 (patched) <https://reviews.apache.org/r/60626/#comment264314> `s/f_status/status.get()/g`. We probably don't need to stringify and return the exit status. - Andrew Schwartzmeyer On Oct. 5, 2017, 9:04 p.m., Jeff Coffler wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60626/ > ----------------------------------------------------------- > > (Updated Oct. 5, 2017, 9:04 p.m.) > > > Review request for mesos, Andrew Schwartzmeyer, John Kordich, Joseph Wu, and > Li Li. > > > Bugs: MESOS-6705 > https://issues.apache.org/jira/browse/MESOS-6705 > > > Repository: mesos > > > Description > ------- > > Eliminate os::shell calls from HDFS for Windows compatibility. > > > Diffs > ----- > > src/hdfs/hdfs.cpp 2c95a5ea43a4289e1168c527b9ccc35690a751a4 > > > Diff: https://reviews.apache.org/r/60626/diff/2/ > > > Testing > ------- > > See upstream > > > Thanks, > > Jeff Coffler > >
