[ https://issues.apache.org/jira/browse/HBASE-10048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834478#comment-13834478 ]
Liu Shaohui commented on HBASE-10048: ------------------------------------- [~yuzhih...@gmail.com] hlog.getNumLogFiles() only returns the number of all log files but the current one, so we need to add one for the current log. Maybe, it's clearer to add 1 in the method of hlog.getNumLogFiles(). > Add hlog number metric in regionserver > -------------------------------------- > > Key: HBASE-10048 > URL: https://issues.apache.org/jira/browse/HBASE-10048 > Project: HBase > Issue Type: Improvement > Reporter: Liu Shaohui > Assignee: Liu Shaohui > Priority: Minor > Attachments: HBASE-10048-0.94-v1.diff > > > Add hlog number metric in regionserver. > We can use this metric to alert about memstore flush because of too many > hlogs. -- This message was sent by Atlassian JIRA (v6.1#6144)