hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Boudnik (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HDFS-812) FSNamesystem#internalReleaseLease throws NullPointerException on a single-block file's lease recovery
Date Wed, 16 Dec 2009 04:12:18 GMT

     [ https://issues.apache.org/jira/browse/HDFS-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Konstantin Boudnik resolved HDFS-812.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.22.0
                   0.21.0

I've ran all unit tests and all HDFS tests. All seemed Ok except for 4 testcases in TestHDFSFileContextMainOperations
which have failed for unrelated reasons.

I've just committed this and merged back to branch-0.21.

> FSNamesystem#internalReleaseLease throws NullPointerException on a single-block file's
lease recovery
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-812
>                 URL: https://issues.apache.org/jira/browse/HDFS-812
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Konstantin Boudnik
>            Assignee: Konstantin Boudnik
>            Priority: Blocker
>             Fix For: 0.21.0, 0.22.0
>
>         Attachments: HDFS-812.patch, HDFS-812.patch, HDFS-812.patch, HDFS-812.patch,
HDFS-812.patch
>
>
> {{FSNamesystem.internalReleaseLease()}} uses the result of {{iFile#numBlocks();}} call
to get a number of an under construction file's blocks. {{numBlock()}} can return 0 if the
file doesn't have any blocks yet. This will cause {{internalReleaseLease()}} to throw ArrayIndexOutOfBoundException.
> In case of a single block file, the same method will throw NullPointerException because
the penultimate block is going to be null according to the logic of INodeFile#getPenultimateBlock().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message