mukul1987 commented on a change in pull request #623: HDDS-2941. file create :
create key table entries for intermediate directories in the path
URL: https://github.com/apache/hadoop-ozone/pull/623#discussion_r389259742
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
##########
@@ -379,6 +358,65 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
return omClientResponse;
}
+ private void checkAllParentsExist(OzoneManager ozoneManager,
+ KeyArgs keyArgs,
+ OMFileRequest.OMPathInfo pathInfo) throws IOException {
+ Boolean canBeCreated = false;
+ String keyName = keyArgs.getKeyName();
+ OMFileRequest.OMDirectoryResult omDirectoryResult =
+ pathInfo.getDirectoryResult();
+
+ if (ozoneManager.createPrefixEntries()) {
+ // if immediate parent exists, assume higher level directories exist.
+ if (pathInfo.getDirectParentExists()) {
Review comment:
The check for this is same as missingparents as null ?
----------------------------------------------------------------
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]