You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2007/06/13 00:34:26 UTC

[jira] Assigned: (HADOOP-1453) exists() not necessary before DFS.open

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

Raghu Angadi reassigned HADOOP-1453:
------------------------------------

    Assignee: Raghu Angadi

> exists() not necessary before DFS.open
> --------------------------------------
>
>                 Key: HADOOP-1453
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1453
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>             Fix For: 0.14.0
>
>
> {code:title=DistributedFileSystem.java:131|borderStyle=solid}
> public FSDataInputStream open(Path f, int bufferSize) throws IOException {
>       if (!exists(f)) {
>         throw new FileNotFoundException(f.toString());
>       }
>       return new DFSClient.DFSDataInputStream(dfs.open(getPath(f)), bufferSize);
>  }
> {code}
> {{exists(f)}} adds extra namenode interaction that is not really required. Open is a critical DFS call.

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