Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 48130 invoked from network); 11 Apr 2008 20:01:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 20:01:06 -0000 Received: (qmail 6201 invoked by uid 500); 11 Apr 2008 20:01:00 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 6123 invoked by uid 500); 11 Apr 2008 20:00:59 -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 6104 invoked by uid 99); 11 Apr 2008 20:00:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 13:00:59 -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; Fri, 11 Apr 2008 20:00:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4321234C0C1 for ; Fri, 11 Apr 2008 12:58:04 -0700 (PDT) Message-ID: <1340769351.1207943884868.JavaMail.jira@brutus> Date: Fri, 11 Apr 2008 12:58:04 -0700 (PDT) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3239) exists() calls logs FileNotFoundException in namenode log In-Reply-To: <906041294.1207941725050.JavaMail.jira@brutus> 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-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588095#action_12588095 ] Raghu Angadi commented on HADOOP-3239: -------------------------------------- Is it enough if RPC does not log these? > exists() calls logs FileNotFoundException in namenode log > --------------------------------------------------------- > > Key: HADOOP-3239 > URL: https://issues.apache.org/jira/browse/HADOOP-3239 > Project: Hadoop Core > Issue Type: Bug > Affects Versions: 0.17.0 > Reporter: lohit vijayarenu > > exists() was modified to invoke getFileStatus() internally. But getFileStatus() throws FileNotFoundException for files which does not exists and this is logged in RPC$Server for each exists() call. One way to get rid of these messages is at the Name Node, catch FileNotFoundException and return null. In this case, RPC would not log it in namenode log. But at the client end we might have to check for null on all calls of getFileStatus(). Other option at client end is to construct FileNotFoundException() when getFileInfo() returns null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.