hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lohit vijayarenu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2634) Deprecate exists() and isDir() to simplify ClientProtocol.
Date Tue, 01 Apr 2008 09:08:27 GMT

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

lohit vijayarenu updated HADOOP-2634:

    Attachment: HADOOP-2634-1.patch

Talked to Konstantine regarding this. Even though the idea of catching exception and returning
bool does not look correct, for time being that approach was felt acceptable. The attached
patch implements exists(Path) in terms of getFileStatus(Path). This patch also deprecates
ClientProtocol#exists and Serverside exists.

> Deprecate exists() and isDir() to simplify ClientProtocol.
> ----------------------------------------------------------
>                 Key: HADOOP-2634
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2634
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: lohit vijayarenu
>            Priority: Blocker
>             Fix For: 0.17.0
>         Attachments: HADOOP-2634-1.patch
> ClientProtocol can be simplified by removing two methods
> {code}
> public boolean exists(String src) throws IOException;
> public boolean isDir(String src) throws IOException;
> {code}
> This is a redundant api, which can be implemented in DFSClient as convenience methods
> {code}
> public DFSFileInfo getFileInfo(String src) throws IOException;
> {code}
> Note that we already deprecated several Filesystem method and advised to use getFileStatus()
> Should we deprecate them in 0.16?

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

View raw message