[ 
https://issues.apache.org/jira/browse/HDFS-15619?focusedWorklogId=543708&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-543708
 ]

ASF GitHub Bot logged work on HDFS-15619:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Jan/21 16:04
            Start Date: 28/Jan/21 16:04
    Worklog Time Spent: 10m 
      Work Description: 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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 543708)
    Time Spent: 1h 10m  (was: 1h)

> Metric for ordered snapshot deletion GC thread
> ----------------------------------------------
>
>                 Key: HDFS-15619
>                 URL: https://issues.apache.org/jira/browse/HDFS-15619
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs
>            Reporter: Nilotpal Nandi
>            Assignee: Nilotpal Nandi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Following info should be captured and shown in JMX for garbage collection 
> thread of ordered snapshot deletion
>  * metric for all pending snapshots to be GCed
>  * Number of times GC thread ran
>  * Number of Snapshots already GCed
>  * Average time taken by each GC run
>  * Thread running Status
>  * metric for failed deletion of GC thread



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to