avijayanhwx opened a new 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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to