[ 
https://issues.apache.org/jira/browse/HDFS-5336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13792365#comment-13792365
 ] 

Chris Nauroth commented on HDFS-5336:
-------------------------------------

This is caused by reliance on static initialization coming back to bite us.  
The startup progress metrics get registered during static initialization of the 
{{NameNode}} class.  Any process accessing that class will register the startup 
progress metrics as a side effect.  For example, {{DatanodeWebHdfsMethods}} 
calls {{NameNode#getHttpAddress}}.  I don't know yet how the YARN code 
triggered it.

> DataNode should not output 'StartupProgress' metrics
> ----------------------------------------------------
>
>                 Key: HDFS-5336
>                 URL: https://issues.apache.org/jira/browse/HDFS-5336
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.1.0-beta
>         Environment: trunk
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>            Priority: Minor
>              Labels: metrics
>
> I found the following metrics output from DataNode.
> {code}
> 1381355455731 default.StartupProgress: Hostname=trunk, ElapsedTime=0, 
> PercentComplete=0.0, LoadingFsImageCount=0, LoadingFsImageElapsedTime=0, 
> LoadingFsImageTotal=0, LoadingFsImagePercentComplete=0.0, 
> LoadingEditsCount=0, LoadingEditsElapsedTime=0, LoadingEditsTotal=0, 
> LoadingEditsPercentComplete=0.0, SavingCheckpointCount=0, 
> SavingCheckpointElapsedTime=0, SavingCheckpointTotal=0, 
> SavingCheckpointPercentComplete=0.0, SafeModeCount=0, SafeModeElapsedTime=0, 
> SafeModeTotal=0, SafeModePercentComplete=0.0
> {code}
> DataNode should not output 'StartupProgress' metrics because the metrics 
> shows the progress of NameNode startup.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to