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 "Todd Lipcon (JIRA)" <ji...@apache.org> on 2012/09/25 23:38:07 UTC

[jira] [Created] (HDFS-3974) dfsadmin -metasave throws NPE when under-replicated blocks are recently deleted

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

[jira] [Assigned] (HDFS-3974) dfsadmin -metasave throws NPE when under-replicated blocks are recently deleted

Posted by "Andy Isaacson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-3974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Isaacson reassigned HDFS-3974:
-----------------------------------

    Assignee: Andy Isaacson
    
> 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
>            Assignee: Andy Isaacson
>            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