[
https://issues.apache.org/jira/browse/HADOOP-10107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825819#comment-13825819
]
Kihwal Lee commented on HADOOP-10107:
-------------------------------------
{{ConnectionManager}} is not created yet when the metrics is registered. Thus
the initial call to {{getNumOpenConnections()}} will fail with a NPE. It will
work from the next snapshot, which occurs 10 seconds later.
> Server.getNumOpenConnections may throw NPE
> ------------------------------------------
>
> Key: HADOOP-10107
> URL: https://issues.apache.org/jira/browse/HADOOP-10107
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ipc
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Daryn Sharp
>
> Found this in [build
> #5440|https://builds.apache.org/job/PreCommit-HDFS-Build/5440/testReport/junit/org.apache.hadoop.hdfs.server.blockmanagement/TestUnderReplicatedBlocks/testSetrepIncWithUnderReplicatedBlocks/]
> Caused by: java.lang.NullPointerException
> at org.apache.hadoop.ipc.Server.getNumOpenConnections(Server.java:2434)
> at
> org.apache.hadoop.ipc.metrics.RpcMetrics.numOpenConnections(RpcMetrics.java:74)
--
This message was sent by Atlassian JIRA
(v6.1#6144)