[ https://issues.apache.org/jira/browse/HDFS-5156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757253#comment-13757253 ]
Akira AJISAKA commented on HDFS-5156: ------------------------------------- Attached a patch for SafeModeTime metrics to record "total" safemode time. Furthermore, the patch enables StateChangeLog to show the interval between safemode enters and leaves like below. {code} 13/09/03 16:35:22 INFO hdfs.StateChange: STATE* Leaving safe mode after 3 secs {code} In trunk, it shows the interval between FSNameSystem starts and safemode leaves. > SafeModeTime metrics sometimes includes non-Safemode time. > ---------------------------------------------------------- > > Key: HDFS-5156 > URL: https://issues.apache.org/jira/browse/HDFS-5156 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.1.0-beta > Reporter: Akira AJISAKA > Labels: metrics > Attachments: HDFS-5156.patch > > > SafeModeTime metrics shows duration in safe mode startup. However, this > metrics is set to the time from FSNameSystem starts whenever safe mode > leaves. In the result, executing "hdfs dfsadmin -safemode enter" and "hdfs > dfsadmin -safemode leave", the metrics includes non-Safemode time. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira