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

LocalFileSystem rename() function should return false when destination file exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None

      Description

      Currently rename() of LocalFileSystem returns true and renames successfully when the destination file exists. That seems to have different behavior from DFSFileSystem.

      If they can have the same behavior, then we can use one call to do rename rather than checking if destination exists and then making rename() call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xiaobingo Xiaobing Zhou
                Reporter:
                aihuaxu Aihua Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: