Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 41291 invoked from network); 3 Mar 2010 19:02:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 19:02:58 -0000 Received: (qmail 46062 invoked by uid 500); 3 Mar 2010 19:02:50 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 45990 invoked by uid 500); 3 Mar 2010 19:02:50 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 45874 invoked by uid 99); 3 Mar 2010 19:02:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 19:02:50 +0000 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; Wed, 03 Mar 2010 19:02:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 617F5234C4CA for ; Wed, 3 Mar 2010 19:02:27 +0000 (UTC) Message-ID: <686763958.42711267642947398.JavaMail.jira@brutus.apache.org> Date: Wed, 3 Mar 2010 19:02:27 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6569) FsShell#cat should avoid calling unecessary getFileStatus before opening a file to read In-Reply-To: <1333327371.313901266350847909.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840803#action_12840803 ] Hudson commented on HADOOP-6569: -------------------------------- Integrated in Hadoop-Common-trunk-Commit #194 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/194/]) . FsShell#cat should avoid calling unecessary getFileStatus before opening a file to read. Contributed by Hairong Kuang. > 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-yahoo.patch, optimizeCat-yahoo1.patch, optimizeCat-yahoo2.patch, optimizeCat.patch, 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.