hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4107) Add utility methods to cast INode to INodeFile and INodeFileUnderConstruction
Date Wed, 24 Oct 2012 16:42:12 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483371#comment-13483371
] 

Suresh Srinivas commented on HDFS-4107:
---------------------------------------

Went through the call stack to ensure the behavior is not changed. Only change I see is throwing
ClassCastException instead of NPE in one of the cases.

Can you please add few unit tests for these new methods?
                
> Add utility methods to cast INode to INodeFile and INodeFileUnderConstruction
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-4107
>                 URL: https://issues.apache.org/jira/browse/HDFS-4107
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h4107_20121022.patch, h4107_20121023.patch
>
>
> In the namenode code, there are many individual routines checking whether an inode is
null and whether it could be cast to INodeFile/INodeFileUnderConstruction.  Let's add utility
methods for such checks.

--
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

Mime
View raw message