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

ASF GitHub Bot logged work on HDDS-2320:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Oct/19 18:09
            Start Date: 21/Oct/19 18:09
    Worklog Time Spent: 10m 
      Work Description: avijayanhwx commented on pull request #68: HDDS-2320. 
Negative value seen for OM NumKeys Metric in JMX.
URL: https://github.com/apache/hadoop-ozone/pull/68
 
 
   ## What changes were proposed in this pull request?
   
   After running teragen, I noticed that the NumKeys metric in OzoneManager JMX 
had a negative value. On investigation, it was seen that we decrease the 
numkeys metric while deleting any key (including directory), but do not 
increment NumKeys when we create a directory. To keep it consistent, the change 
proposes increasing NumKeys while creating directories as well. This 
essentially means that the "NumKeys" is a pure OM metric that tracks the number 
of entries it manages as opposed to the number of files that are managed by SCM 
and Ratis. 
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-2320
   
   ## How was this patch tested?
   Manually tested on cluster. Added unit test. 
 
----------------------------------------------------------------
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: 331557)
    Remaining Estimate: 0h
            Time Spent: 10m

> Negative value seen for OM NumKeys Metric in JMX.
> -------------------------------------------------
>
>                 Key: HDDS-2320
>                 URL: https://issues.apache.org/jira/browse/HDDS-2320
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Manager
>            Reporter: Aravindan Vijayan
>            Assignee: Aravindan Vijayan
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: Screen Shot 2019-10-17 at 11.31.08 AM.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> While running teragen/terasort on a cluster and verifying number of keys 
> created on Ozone Manager, I noticed that the value of NumKeys counter metric 
> to be a negative value !Screen Shot 2019-10-17 at 11.31.08 AM.png! .



--
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