nilotpalnandi commented on a change in pull request #2595:
URL: https://github.com/apache/hadoop/pull/2595#discussion_r566212069
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/metrics/NameNodeMetrics.java
##########
@@ -87,6 +81,19 @@
MutableGaugeInt blockOpsQueued;
@Metric("Number of blockReports and blockReceivedAndDeleted batch processed")
MutableCounterLong blockOpsBatched;
+ @Metric("Number of snapshot GC runs")
+ MutableCounterLong numSnapshotGcRun;
+ @Metric("Number of empty snapshot GC runs")
+ MutableCounterLong numSnapshotGcRunEmpty;
Review comment:
numSnapshotGcRunEmpty would be useful BDR runs where we can track the
number of non-GCed cycles.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]