Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6271

The container logger should be responsible for making sure stdout/stderr are writable by the task

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.0
    • None
    • None
    • None

    Description

      Today the container logger prepares the stdout/stderr for the executor but the not the fetcher. The fetcher creates separate files (location hardcoded, with O_TRUNC!) for its own stdout/stderr. The fetcher also does a recursive chown (which has unintended side-effects and is being fixed in MESOS-5218) but it is not even executed if the task doesn't fetch anything (e.g., with a command executor). As a result by the time the executor needs to write to its stdout/stderr, the files may belong to the task user or the agent user and its by coincidence it doesn't fail more widely.

      The fetcher should use the stderr/stdout prepared by the container logger and the container logger should be responsible for making it writable by the task user.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xujyan Yan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: