avijayanhwx commented on a change in pull request #102: HDDS-2380. Use the Table.isExist() API instead of get() API while checking for presence of key. URL: https://github.com/apache/hadoop-ozone/pull/102#discussion_r341276117
########## File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java ########## @@ -60,15 +60,15 @@ public static OMDirectoryResult verifyFilesInPath( String dbDirKeyName = omMetadataManager.getOzoneDirKey(volumeName, bucketName, pathName); - if (omMetadataManager.getKeyTable().get(dbKeyName) != null) { + if (omMetadataManager.getKeyTable().isExist(dbKeyName)) { Review comment: Thank you @anuengineer. This is a valid observation. I will fix the working of the isExist method in https://github.com/apache/hadoop-ozone/pull/101 where we are modifying the implementation. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org