hadoop-yetus commented on a change in pull request #533: HADOOP-14630 Contract
Tests to verify create, mkdirs and rename under a file is forbidden
URL: https://github.com/apache/hadoop/pull/533#discussion_r317322338
##########
File path:
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md
##########
@@ -530,14 +530,21 @@ on the filesystem.
### `boolean mkdirs(Path p, FsPermission permission)`
-Create a directory and all its parents
+Create a directory and all its parents.
#### Preconditions
+The path must either be a directory or not exist
+
if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException,
IOException]
+No ancestor may be a file
+
+ forall d = ancestors(FS, p) :
Review comment:
whitespace:end of line
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]