Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9123

Copying from the root to a subdirectory should be forbidden

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      HDFS forbids copying from a directory to its subdirectory (e.g. hdfs dfs -cp /abc /abc/xyz) as otherwise it could cause infinite copying (/abc/xyz/xyz, /abc/xyz/xyz, /abc/xyz/xyz/xyz,... etc)

      However, the existing path validation fails if the source path is the root, causing infinite copying, until the disk space is filled up.

      Attachments

        1. HDFS-9123.001.patch
          4 kB
          Wei-Chiu Chuang
        2. HDFS-9123.002.patch
          4 kB
          Wei-Chiu Chuang
        3. HDFS-9123.003.patch
          2 kB
          Wei-Chiu Chuang
        4. HDFS-9123.004.patch
          2 kB
          Wei-Chiu Chuang

        Activity

          People

            weichiu Wei-Chiu Chuang
            weichiu Wei-Chiu Chuang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: