Todd Lipcon created HDFS-3974: --------------------------------- Summary: dfsadmin -metasave throws NPE when under-replicated blocks are recently deleted Key: HDFS-3974 URL: https://issues.apache.org/jira/browse/HDFS-3974 Project: Hadoop HDFS Issue Type: Bug Components: name-node Affects Versions: 3.0.0 Reporter: Todd Lipcon Priority: Minor
We currently have the following race: - Block is underreplicated, hence it's present in neededReplications - User deletes the block - its BlockInfo.blockCollection is set to null - Admin runs metaSave before the replication monitor runs. This causes an NPE since block.getBlockCollection() for one of the neededReplication blocks has become null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira