Details
-
Bug
-
Status: Patch Available
-
Critical
-
Resolution: Unresolved
-
2.0.3-alpha
-
None
-
None
Description
should throw a FileAlreadyExistsException if the directory already exists.
I tested this and
FileContext lfc = FileContext.getLocalFSFileContext(new Configuration()); Path p = new Path("/tmp/bobby.12345"); FsPermission cachePerms = new FsPermission((short) 0755); lfc.mkdir(p, cachePerms, false); lfc.mkdir(p, cachePerms, false);
never throws an exception.
Attachments
Attachments
Issue Links
- is depended upon by
-
YARN-112 Race in localization can cause containers to fail
- Closed
- is duplicated by
-
HDFS-4619 No Exception is thrown if we try to create directory using FileContext (create) on RawLocalFileSystem. Even if the directory already exists.
- Resolved
- is related to
-
HADOOP-9361 Strictly define the expected behavior of filesystem APIs and write tests to verify compliance
- Closed