[
https://issues.apache.org/jira/browse/HDFS-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202950#comment-13202950
]
Todd Lipcon commented on HDFS-2510:
-----------------------------------
{code}
+ public long getMillisSinceLastLoadedEdits() {
+ if (haContext.getState().getServiceState() == HAServiceState.STANDBY) {
{code}
Does this code possibly get called early during start-up before the ha context
state has been set? (ie before the first start*Service)
----
- in EditLogTailer, the new javadoc is redundant - just keep the @return bit
> Add HA-related metrics
> ----------------------
>
> Key: HDFS-2510
> URL: https://issues.apache.org/jira/browse/HDFS-2510
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: data-node, ha, name-node
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Attachments: HDFS-2510.HDFS-1623.patch
>
>
> Off the top of my head, I can think of:
> NN metrics:
> * A binary metric for active or standby
> * The size of the pending DN message queues
> * A timestamp for when the standby NN last read from shared edit log
> * The difference between highest generation stamp seen from the shared edit
> log and the highest generation stamp seen from any DN
> It would probably also be useful to have a DN metric which somehow describes
> which active/standby NNs its talking to, e.g. "times since last communicated
> with standby/active NNs."
> I'm sure there are others as well. Comments strongly encouraged.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira