You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "lujie (JIRA)" <ji...@apache.org> on 2019/01/19 05:59:00 UTC

[jira] [Created] (HDFS-14216) NullPointerException crash the NameNode

lujie created HDFS-14216:
----------------------------

             Summary: NullPointerException crash the NameNode
                 Key: HDFS-14216
                 URL: https://issues.apache.org/jira/browse/HDFS-14216
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: lujie


workload 

 
{code:java}
curl -i -X PUT -T some.txt "http://hadoop1:9870/webhdfs/v1/input?op=CREATE&excludedatanodes=hadoop2"
{code}
it will execute the code:

 

 
{code:java}
org.apache.hadoop.hdfs.server.namenode.web.resources.NamenodeWebHdfsMethods.chooseDatanode{ 
 excludes.add(bm.getDatanodeManager().getDatanodeByHost(host));//line280
}{code}
if hadoop2 is crash just before line280, then bm.getDatanodeManager().getDatanodeByHost(host) will return null, hence NPE happens

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org