rakeshadr commented on a change in pull request #2008:
URL: https://github.com/apache/ozone/pull/2008#discussion_r599241163
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java
##########
@@ -607,11 +609,20 @@ public static OzoneFileStatus getOMKeyInfoIfExists(
OMMetadataManager omMetadataMgr, String volumeName, String bucketName,
String keyName, long scmBlockSize) throws IOException {
+ OMFileRequest.validateBucket(omMetadataMgr, volumeName, bucketName);
+
Path keyPath = Paths.get(keyName);
Iterator<Path> elements = keyPath.iterator();
String bucketKey = omMetadataMgr.getBucketKey(volumeName, bucketName);
OmBucketInfo omBucketInfo =
omMetadataMgr.getBucketTable().get(bucketKey);
+ if (null == omBucketInfo) {
Review comment:
OK, will remove this. Its a duplicate check.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]