You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "aswinshakil (via GitHub)" <gi...@apache.org> on 2023/09/29 00:07:54 UTC

[GitHub] [ozone] aswinshakil commented on a diff in pull request #5361: HDDS-8641. Removed numSnapshotReclaimed metric and added missing getter for snapshot metrics.

aswinshakil commented on code in PR #5361:
URL: https://github.com/apache/ozone/pull/5361#discussion_r1340761898


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java:
##########
@@ -1024,6 +1026,7 @@ void generateSnapshotDiffReport(final String jobKey,
       throw new RuntimeException(exception);
     } catch (Exception exception) {
       updateJobStatusToFailed(jobKey, exception.getMessage());
+      ozoneManager.getMetrics().incNumSnapshotDiffJobFails();

Review Comment:
   Do you want to move it inside `updateJobStatusToFailed` so that we can avoid duplication?



-- 
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: issues-unsubscribe@ozone.apache.org

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