Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66BE9176EE for ; Sun, 1 Mar 2015 07:00:16 +0000 (UTC) Received: (qmail 937 invoked by uid 500); 1 Mar 2015 07:00:16 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 878 invoked by uid 500); 1 Mar 2015 07:00:16 -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 862 invoked by uid 99); 1 Mar 2015 07:00:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2015 07:00:16 +0000 Date: Sun, 1 Mar 2015 07:00:16 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-1447) Make getGenerationStampFromFile() more efficient, so it doesn't reprocess full directory listing for every block MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer updated HDFS-1447: ----------------------------------- Status: Open (was: Patch Available) Canceling patch. > Make getGenerationStampFromFile() more efficient, so it doesn't reprocess full directory listing for every block > ---------------------------------------------------------------------------------------------------------------- > > Key: HDFS-1447 > URL: https://issues.apache.org/jira/browse/HDFS-1447 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode > Affects Versions: 0.20.2 > Reporter: Matt Foley > Assignee: Matt Foley > Attachments: HDFS-1447.patch, Test_HDFS_1447_NotForCommitt.java.patch > > > Make getGenerationStampFromFile() more efficient. Currently this routine is called by addToReplicasMap() for every blockfile in the directory tree, and it walks each file's containing directory on every call. There is a simple refactoring that should make it more efficient. > This work item is one of four sub-tasks for HDFS-1443, Improve Datanode startup time. > The fix will probably be folded into sibling task HDFS-1446, which is already refactoring the method that calls getGenerationStampFromFile(). -- This message was sent by Atlassian JIRA (v6.3.4#6332)