Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 98188 invoked from network); 30 Jul 2009 21:39:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 21:39:38 -0000 Received: (qmail 78139 invoked by uid 500); 30 Jul 2009 21:39:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 78097 invoked by uid 500); 30 Jul 2009 21:39:39 -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 78087 invoked by uid 99); 30 Jul 2009 21:39:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 21:39:39 +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; Thu, 30 Jul 2009 21:39:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8340234C046 for ; Thu, 30 Jul 2009 14:39:14 -0700 (PDT) Message-ID: <160598897.1248989954814.JavaMail.jira@brutus> Date: Thu, 30 Jul 2009 14:39:14 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-511) Redundant block searches in BlockManager. In-Reply-To: <671244695.1248823875169.JavaMail.jira@brutus> 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/HDFS-511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konstantin Shvachko updated HDFS-511: ------------------------------------- Attachment: BlockManager.patch Don't see any rational reasons to keep the old method in BlockManager, but here it is. I had to rename it to {{findAndMarkBlockAsCorrupt()}} because if there are two methods with the same name it would be unclear which method is actually called for a stored block. > Redundant block searches in BlockManager. > ----------------------------------------- > > Key: HDFS-511 > URL: https://issues.apache.org/jira/browse/HDFS-511 > Project: Hadoop HDFS > Issue Type: Improvement > Components: name-node > Affects Versions: 0.21.0 > Reporter: Konstantin Shvachko > Assignee: Konstantin Shvachko > Fix For: 0.21.0 > > Attachments: BlockManager.patch, BlockManager.patch, BlockManager.patch > > > Some searches for a block in {{blocksMap}} are redundant and should be eliminated. > {{BlockManager.addStoredBlock()}} contain unnecessary explicit and hidden (inside {{markBlockAsCorrupt()}}) calls of {{blocksMap.getStoredBlock()}}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.