bhattmanish98 commented on code in PR #7386:
URL: https://github.com/apache/hadoop/pull/7386#discussion_r1977149452


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java:
##########
@@ -444,15 +443,14 @@ public void createNonRecursivePreCheck(Path parentPath,
       }
       getPathStatus(parentPath.toUri().getPath(), false,
           tracingContext, null);
+      incrementAbfsGetPathStatus();
     } catch (AbfsRestOperationException ex) {
       if (ex.getStatusCode() == HttpURLConnection.HTTP_NOT_FOUND) {
         throw new FileNotFoundException("Cannot create file "
             + parentPath.toUri().getPath()
             + " because parent folder does not exist.");
       }
       throw ex;

Review Comment:
   Moved it to finally block



##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobDeleteHandler.java:
##########
@@ -90,6 +90,7 @@ int getMaxConsumptionParallelism() {
   private boolean deleteInternal(final Path path)
       throws AzureBlobFileSystemException {
     getAbfsClient().deleteBlobPath(path, null, tracingContext);
+    getAbfsClient().incrementAbfsDeleteFile();

Review Comment:
   Moved to finally block



##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java:
##########
@@ -993,8 +993,6 @@ public Void call() throws Exception {
             delete(fs.getPath(), fs.isDirectory());
             if (fs.isDirectory()) {
               statIncrement(DIRECTORIES_DELETED);
-            } else {

Review Comment:
   We are incrementing Delete Files in Client.



##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java:
##########
@@ -693,6 +697,34 @@ protected void incrementAbfsRenamePath() {
     abfsCounters.incrementCounter(RENAME_PATH_ATTEMPTS, 1);
   }
 
+  /**
+   * Increments AbfsCounters for get path status by 1.
+   */
+  protected void incrementAbfsGetPathStatus() {

Review Comment:
   As discussed, this is just a placeholder so that we can use the same method 
in both DFS and Blob client.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to