hemantk-12 commented on code in PR #6138:
URL: https://github.com/apache/ozone/pull/6138#discussion_r1543369762
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -863,6 +863,7 @@ private void instantiateServices(boolean withNewSnapshot)
throws IOException {
omSnapshotManager = new OmSnapshotManager(this);
// Snapshot metrics
+ metrics.setNumSnapshotCacheSize(omSnapshotManager.getSnapshotCacheSize());
Review Comment:
There is no need to set this metric here. It is a cache metic and should be
zero on the OM start-up because there is nothing in the cache at that time.
--
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]