Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4594

container-executor fails to remove directory tree when chmod required

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha1, 2.8.2
    • Component/s: nodemanager
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      test-container-executor.c doesn't work:

      • It assumes that realpath(/bin/ls) will be /bin/ls, whereas it is actually /usr/bin/ls on many systems.
      • The recursive delete logic in container-executor.c fails – nftw does the wrong thing when confronted with directories with the wrong mode (permission bits), leading to an attempt to run rmdir on a non-empty directory.

        Attachments

        1. YARN-4594.004.patch
          9 kB
          Colin P. McCabe
        2. YARN-4594.003.patch
          9 kB
          Colin P. McCabe
        3. YARN-4594.002.patch
          9 kB
          Colin P. McCabe
        4. YARN-4594.001.patch
          9 kB
          Colin P. McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin P. McCabe
                Reporter:
                cmccabe Colin P. McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: