hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranith Sardar (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-13869) RBF: Handle NPE for NamenodeBeanMetrics#getFederationMetrics()
Date Mon, 10 Sep 2018 02:12:00 GMT

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

Ranith Sardar edited comment on HDFS-13869 at 9/10/18 2:11 AM:
---------------------------------------------------------------

We will get this exception when the metrics are not initialized , So  used {{TestDisableRouterQuota
class.}}

Yes, Both the cases are different for "Metrics is not initialized" exception. But just handled
the NPE scenario.

In my next patch, i will update correct the exception msg and will write new class for UT.


was (Author: ranith):
We will get this exception when the metrics are not initialized , So  used {{TestDisableRouterQuota
class.}}

Yes, Both the cases are different for "Metrics is not initialized" exception. But just handled
the NPE scenario.

> 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-003.diff, HDFS-13869-004.patch,
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


Mime
View raw message