Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.4.0
-
None
-
Incompatible change
-
HDFS's rename(src, dst) throws FileNotFoundException instead of logging warn message and returning false if the source of the rename does not exist.
Description
HDFS's rename(src, dest) returns false if src does not exist -all the other filesystems raise FileNotFoundException
This behaviour is defined in FSDirectory.unprotectedRenameTo() -the attempt is logged, but the operation then just returns false.
I propose changing the behaviour of DistributedFileSystem to be the same as that of the others -and of FileContext, which does reject renames with nonexistent sources
Attachments
Attachments
Issue Links
- is part of
-
HDFS-303 Make contracts of LocalFileSystem and DistributedFileSystem consistent
- Resolved
- relates to
-
HADOOP-6240 Rename operation is not consistent between different implementations of FileSystem
- Closed
-
HDFS-654 HDFS needs to support new rename introduced for FileContext
- Closed