hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jagadesh Kiran N (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10869) Unused method checkId() in InodeId.java file
Date Fri, 23 Sep 2016 13:50:20 GMT

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

Jagadesh Kiran N commented on HDFS-10869:
-----------------------------------------

Updated the patch after removing unused imports as part of  checkstyle errors


> Unused method checkId() in InodeId.java file 
> ---------------------------------------------
>
>                 Key: HDFS-10869
>                 URL: https://issues.apache.org/jira/browse/HDFS-10869
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: Jagadesh Kiran N
>            Assignee: Jagadesh Kiran N
>         Attachments: HDFS-10869.patch, HDFS-10869_01.patch
>
>
> The following method in InodeId.java is not used anywhere , We can remove the code 
> {code}
> public static void checkId(long requestId, INode inode)
>       throws FileNotFoundException {
>     if (requestId != HdfsConstants.GRANDFATHER_INODE_ID && requestId != inode.getId())
{
>       throw new FileNotFoundException(
>           "ID mismatch. Request id and saved id: " + requestId + " , "
>               + inode.getId() + " for file " + inode.getFullPathName());
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message