You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/12/07 17:28:24 UTC

[GitHub] [ozone] bharatviswa504 commented on a change in pull request #1665: HDDS-4554. numKey metrics goes negative after intermediate directory deletion.

bharatviswa504 commented on a change in pull request #1665:
URL: https://github.com/apache/ozone/pull/1665#discussion_r537689768



##########
File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
##########
@@ -336,6 +338,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
 
     switch (result) {
     case SUCCESS:
+      omMetrics.incNumKeys(numMissingParents);

Review comment:
       This is already taken care 
   ```
       } catch (IOException ex) {
         result = Result.FAILURE;
         exception = ex;
         omMetrics.incNumCreateFileFails();
   ```
   
   Is this what you are looking for?




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org