Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 31863 invoked from network); 23 Dec 2010 17:51:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Dec 2010 17:51:08 -0000 Received: (qmail 32943 invoked by uid 500); 23 Dec 2010 17:51:08 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 32489 invoked by uid 500); 23 Dec 2010 17:51:07 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 32481 invoked by uid 99); 23 Dec 2010 17:51:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 17:51:07 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 17:51:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBNHokIl015575 for ; Thu, 23 Dec 2010 17:50:46 GMT Message-ID: <14988360.811293126646812.JavaMail.jira@thor> Date: Thu, 23 Dec 2010 12:50:46 -0500 (EST) From: "Dmytro Molkov (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Created: (HDFS-1558) Optimize FSNamesystem.startFileInternal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Optimize FSNamesystem.startFileInternal --------------------------------------- Key: HDFS-1558 URL: https://issues.apache.org/jira/browse/HDFS-1558 Project: Hadoop HDFS Issue Type: Improvement Reporter: Dmytro Molkov Assignee: Dmytro Molkov Priority: Minor Fix For: 0.23.0 Currently on file creation inside of FSNamesystem.startFileInternal there are three calls to FSDirectory that are essentially the same: dir.exists(src) dir.isDir(src) dir.getFileInode(src) All of them have to fetch the inode and then do some processing on it. If instead we were to fetch the inode once and then do all of the processing on this INode object it would save us two trips through the namespace + 2 calls to normalizePath all of which are relatively expensive. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.