hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4158) FSDirectory#hasSnapshot will NPE when deleting an empty directory
Date Wed, 07 Nov 2012 01:02:12 GMT

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

Aaron T. Myers updated HDFS-4158:

    Attachment: HDFS-4158.patch

Here's a trivial patch which fixes the issue. No tests are included since this functionality
(deleting an empty directory) is currently covered by several other tests.
> FSDirectory#hasSnapshot will NPE when deleting an empty directory
> -----------------------------------------------------------------
>                 Key: HDFS-4158
>                 URL: https://issues.apache.org/jira/browse/HDFS-4158
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Snapshot (HDFS-2802)
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-4158.patch
> The method attempts to iterate over the child list of the directory, but that list may
be null and this isn't handled currently.

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

View raw message