Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Later
-
0.23.0
-
None
-
None
Description
FileSystemContractBaseTest#testRenameFileMoveToNonExistentDirectory: creates a file then move it to a non-existing directory. It should fail but it will not (with RawLocalFileSystem) because in RawLocalFileSystem#rename(Path, Path) method we have a fallback behavior that accomplishes the rename by a full copy. The full copy will create the new directory and copy the file there.
I see two possible solutions here:
- Remove the fallback full copy behavior
- Before full cp we should check whether the parent directory exists or not. If not return false an do not do the full copy.
The fallback logic was added by HADOOP-9805.
Attachments
Issue Links
- blocks
-
HADOOP-7363 TestRawLocalFileSystemContract is needed
- Resolved
- is broken by
-
HADOOP-9805 Refactor RawLocalFileSystem#rename for improved testability.
- Resolved