You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2010/02/19 01:24:28 UTC

[jira] Commented: (HADOOP-6569) FsShell#cat should avoid calling unecessary getFileStatus before opening a file to read

    [ https://issues.apache.org/jira/browse/HADOOP-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835524#action_12835524 ] 

Eli Collins commented on HADOOP-6569:
-------------------------------------

+1  looks good to me. 

> FsShell#cat should avoid calling unecessary getFileStatus before opening a file to read
> ---------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6569
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6569
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.22.0
>
>         Attachments: optimizeCat.patch
>
>
> Since FileSystem#open throws a FileNotFoundException when the file to be read does not exist, there is no need to check if the file is a directory or not before open. In case of HDFS, this could reduce one getFileInfo RPC to NameNode.

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