You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ranith Sardar (JIRA)" <ji...@apache.org> on 2018/09/03 02:02:00 UTC
[jira] [Commented] (HDFS-13869) RBF: Handle NPE for
NamenodeBeanMetrics#getFederationMetrics()
[ https://issues.apache.org/jira/browse/HDFS-13869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601732#comment-16601732 ]
Ranith Sardar commented on HDFS-13869:
--------------------------------------
Thankx [~surendrasingh] for reporting this issue.
[~elgoiri], I have attached a new patch, where null pointer for getFederationMetrics() has been handled.
This scenario only comes when jmx service is running, metrics
As discussed with [~surendrasingh] (offline), he told me like he got this exception in test failure. Mostly this occurs when system is not started fully and jmx call happened.
> RBF: Handle NPE for NamenodeBeanMetrics#getFederationMetrics()
> --------------------------------------------------------------
>
> Key: HDFS-13869
> URL: https://issues.apache.org/jira/browse/HDFS-13869
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 3.0.0
> Reporter: Surendra Singh Lilhore
> Assignee: Ranith Sardar
> Priority: Major
> Attachments: HDFS-13869-002.diff, HDFS-13869.patch
>
>
> {code:java}
> Caused by: java.lang.NullPointerException
> at org.apache.hadoop.hdfs.server.federation.metrics.NamenodeBeanMetrics.getUsed(NamenodeBeanMetrics.java:205)
> at org.apache.hadoop.hdfs.server.federation.metrics.NamenodeBeanMetrics.getCapacityUsed(NamenodeBeanMetrics.java:519)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43){code}
> ngMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org