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

DFSClient.rename() to unwrap ParentNotDirectoryException; define policy for renames under a file

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None

      Description

      HADOOP-14630 adds some contract tests trying to create files or rename files under other files.

      On a rename under an existing file (or dir under an existing file), HDFS fails throwing org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.fs.ParentNotDirectoryException).

      1. is throwing an exception here what people agree is the correct behaviour? If so, it can go into the filesystem spec, tests set up to expect it. object stores tweaked for consistency. If not, HDFS needs a change.
      2. At the very least, HDFS should be unwrapping the exception.

        Attachments

        1. HADOOP-14630-002.patch
          17 kB
          Steve Loughran
        2. HADOOP-14630-001.patch
          17 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: