You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Ben Mahler <be...@gmail.com> on 2013/08/01 01:49:20 UTC

Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

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

Review request for mesos, Benjamin Hindman and Vinod Kone.


Bugs: MESOS-599
    https://issues.apache.org/jira/browse/MESOS-599


Repository: mesos-git


Description
-------

When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.

This makes it easier for framework developers to investigate launcher failures.


Diffs
-----

  src/launcher/launcher.hpp 637c9bcdfd9c3ee4c071cc46ba8fd274a06873cf 
  src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 
  src/launcher/main.cpp 5674afb7eeded167af97a953d174f4045860a4c8 
  src/slave/cgroups_isolator.cpp 0faf7d50d76887cad02267ab11827664a4b63476 
  src/slave/process_isolator.cpp cd794f6cb301a8c00a4c0ef906f95e53959ed905 

Diff: https://reviews.apache.org/r/13177/diff/


Testing
-------

make check


Thanks,

Ben Mahler


Re: Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13177/#review24390
-----------------------------------------------------------


The initial reason we did not redirect stderr/stdout for local runs was because if you ran your scheduler with 'local' then you could see your output in the same terminal. In retrospect, what if we do both for 'local'?

- Benjamin Hindman


On July 31, 2013, 11:50 p.m., Ben Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13177/
> -----------------------------------------------------------
> 
> (Updated July 31, 2013, 11:50 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Vinod Kone.
> 
> 
> Bugs: MESOS-599
>     https://issues.apache.org/jira/browse/MESOS-599
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.
> 
> This makes it easier for framework developers to investigate launcher failures.
> 
> Also, note that I removed the ability to conditionally redirect IO, since this was being used for local runs. I don't see why local runs would need to bypass the redirection, any context I'm missing?
> 
> 
> Diffs
> -----
> 
>   src/launcher/launcher.hpp 637c9bcdfd9c3ee4c071cc46ba8fd274a06873cf 
>   src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 
>   src/launcher/main.cpp 5674afb7eeded167af97a953d174f4045860a4c8 
>   src/slave/cgroups_isolator.cpp 0faf7d50d76887cad02267ab11827664a4b63476 
>   src/slave/process_isolator.cpp cd794f6cb301a8c00a4c0ef906f95e53959ed905 
> 
> Diff: https://reviews.apache.org/r/13177/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Ben Mahler
> 
>


Re: Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13177/#review24388
-----------------------------------------------------------

Ship it!


If you don't mind, want to kill 'local' from both CgroupsIsolator and ProcessIsolotor all together?

- Benjamin Hindman


On July 31, 2013, 11:50 p.m., Ben Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13177/
> -----------------------------------------------------------
> 
> (Updated July 31, 2013, 11:50 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Vinod Kone.
> 
> 
> Bugs: MESOS-599
>     https://issues.apache.org/jira/browse/MESOS-599
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.
> 
> This makes it easier for framework developers to investigate launcher failures.
> 
> Also, note that I removed the ability to conditionally redirect IO, since this was being used for local runs. I don't see why local runs would need to bypass the redirection, any context I'm missing?
> 
> 
> Diffs
> -----
> 
>   src/launcher/launcher.hpp 637c9bcdfd9c3ee4c071cc46ba8fd274a06873cf 
>   src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 
>   src/launcher/main.cpp 5674afb7eeded167af97a953d174f4045860a4c8 
>   src/slave/cgroups_isolator.cpp 0faf7d50d76887cad02267ab11827664a4b63476 
>   src/slave/process_isolator.cpp cd794f6cb301a8c00a4c0ef906f95e53959ed905 
> 
> Diff: https://reviews.apache.org/r/13177/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Ben Mahler
> 
>


Re: Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13177/#review24398
-----------------------------------------------------------

Ship it!


Ship It!

- Benjamin Hindman


On Aug. 1, 2013, 12:18 a.m., Ben Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13177/
> -----------------------------------------------------------
> 
> (Updated Aug. 1, 2013, 12:18 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Vinod Kone.
> 
> 
> Bugs: MESOS-599
>     https://issues.apache.org/jira/browse/MESOS-599
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.
> 
> This makes it easier for framework developers to investigate launcher failures.
> 
> 
> Diffs
> -----
> 
>   src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 
> 
> Diff: https://reviews.apache.org/r/13177/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Ben Mahler
> 
>


Re: Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13177/
-----------------------------------------------------------

(Updated Aug. 1, 2013, 12:18 a.m.)


Review request for mesos, Benjamin Hindman and Vinod Kone.


Changes
-------

Reverted the removal of the ability to conditionally redirect. Local runs continue to show the output on stderr / stdout.


Bugs: MESOS-599
    https://issues.apache.org/jira/browse/MESOS-599


Repository: mesos-git


Description (updated)
-------

When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.

This makes it easier for framework developers to investigate launcher failures.


Diffs (updated)
-----

  src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 

Diff: https://reviews.apache.org/r/13177/diff/


Testing
-------

make check


Thanks,

Ben Mahler


Re: Review Request 13177: Updated the launcher to redirect stderr/stdout during forked setup.

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13177/
-----------------------------------------------------------

(Updated July 31, 2013, 11:50 p.m.)


Review request for mesos, Benjamin Hindman and Vinod Kone.


Bugs: MESOS-599
    https://issues.apache.org/jira/browse/MESOS-599


Repository: mesos-git


Description (updated)
-------

When the launcher fails there isn't any stderr/stdout created for the executor/task so you're forced to look at the slave logs.

This makes it easier for framework developers to investigate launcher failures.

Also, note that I removed the ability to conditionally redirect IO, since this was being used for local runs. I don't see why local runs would need to bypass the redirection, any context I'm missing?


Diffs
-----

  src/launcher/launcher.hpp 637c9bcdfd9c3ee4c071cc46ba8fd274a06873cf 
  src/launcher/launcher.cpp c7d2c302498f039836dff85efa9b696ae5663900 
  src/launcher/main.cpp 5674afb7eeded167af97a953d174f4045860a4c8 
  src/slave/cgroups_isolator.cpp 0faf7d50d76887cad02267ab11827664a4b63476 
  src/slave/process_isolator.cpp cd794f6cb301a8c00a4c0ef906f95e53959ed905 

Diff: https://reviews.apache.org/r/13177/diff/


Testing
-------

make check


Thanks,

Ben Mahler