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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.1
    • 3.3.0
    • fs
    • 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

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: