Description
This task is sub task of HDFS-303
"1. When trying to make a directory under an existing file, HDFS throws an IOException while LocalFileSystem doesn't.
An IOException seems good here. "
Actually HDFS throws FileNotFoundException in this case (in FSDirectory.mkdirs() ). So I guess we should do the same.
Attachments
Attachments
Issue Links
- is duplicated by
-
HADOOP-6501 RawLocalFileSystem.mkdirs does not throw IOException when it should?
- Resolved
- is part of
-
HDFS-303 Make contracts of LocalFileSystem and DistributedFileSystem consistent
- Resolved