Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5551

Namenode permits directory destruction on overwrite

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.19.1
    • 0.19.2, 0.20.0
    • None
    • None
    • Reviewed

    Description

      The FSNamesystem's startFileInternal allows overwriting of directories. That is, if you have a directory named /foo/bar and you try to write a file named /foo/bar, the file is written and the directory disappears.

      This is most apparent for folks using libhdfs directly, as overwriting is always turned on. Therefore, if libhdfs applications do not check the existence of a directory first, then they will permit new files to destroy directories.

      Attachments

        1. HADOOP-5551-v2.patch
          2 kB
          Brian Bockelman
        2. HADOOP-5551-v3.patch
          2 kB
          Brian Bockelman
        3. HADOOP-5551-v4.patch
          2 kB
          Brian Bockelman

        Activity

          People

            bockelman Brian Bockelman
            bockelman Brian Bockelman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: