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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org