Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 40636 invoked from network); 17 Apr 2008 00:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 00:30:29 -0000 Received: (qmail 86456 invoked by uid 500); 17 Apr 2008 00:30:28 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 86431 invoked by uid 500); 17 Apr 2008 00:30:28 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 86422 invoked by uid 99); 17 Apr 2008 00:30:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 17:30:28 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 00:29:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6B919234C0D3 for ; Wed, 16 Apr 2008 17:27:21 -0700 (PDT) Message-ID: <268281819.1208392041425.JavaMail.jira@brutus> Date: Wed, 16 Apr 2008 17:27:21 -0700 (PDT) From: "lohit vijayarenu (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-2634) Deprecate exists() and isDir() to simplify ClientProtocol. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] lohit vijayarenu updated HADOOP-2634: ------------------------------------- Release Note: Deprecates exists() from ClientProtocol Hadoop Flags: [Incompatible change, Reviewed] (was: [Reviewed, Incompatible change]) > 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, HADOOP-2634-2.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 using > {code} > public DFSFileInfo getFileInfo(String src) throws IOException; > {code} > Note that we already deprecated several Filesystem method and advised to use getFileStatus() instead. > 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.