----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67354/#review204120 -----------------------------------------------------------
include/mesos/executor.hpp Lines 219-220 (patched) <https://reviews.apache.org/r/67354/#comment286508> Instead of copying the comment from above, please explain how this c-tor is differet from the one above. Maybe you can also add a note for the comment above that it can be unsafe to use it due to getenv calls. src/exec/exec.cpp Lines 636-638 (patched) <https://reviews.apache.org/r/67354/#comment286509> really? : ) - Alexander Rukletsov On May 29, 2018, 2:20 p.m., Andrei Budnik wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/67354/ > ----------------------------------------------------------- > > (Updated May 29, 2018, 2:20 p.m.) > > > Review request for mesos, Alexander Rukletsov, Benjamin Bannier, haosdent > huang, Ilya Pronin, and James Peach. > > > Bugs: MESOS-3475 > https://issues.apache.org/jira/browse/MESOS-3475 > > > Repository: mesos > > > Description > ------- > > This patch adds overloaded constructor for `MesosExecutorDriver` that > accepts `environment` parameter and stores it in the class variable. > This new constructor is needed to get rid of `os::getenv()` calls, > so that `MesosExecutorDriver` can be used in tests that require > thread safety. > > > Diffs > ----- > > include/mesos/executor.hpp d14c0369f6731100d27092142b56f108f8881003 > src/exec/exec.cpp 65a671d7ce83a51087d290ba039d18deba6313c2 > > > Diff: https://reviews.apache.org/r/67354/diff/1/ > > > Testing > ------- > > internal CI > > > Thanks, > > Andrei Budnik > >
