Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 33338 invoked from network); 13 Aug 2008 22:11:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 22:11:36 -0000 Received: (qmail 28304 invoked by uid 500); 13 Aug 2008 22:11:34 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 28263 invoked by uid 500); 13 Aug 2008 22:11:34 -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 28252 invoked by uid 99); 13 Aug 2008 22:11:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 15:11:33 -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; Wed, 13 Aug 2008 22:10:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A2E4234C1AB for ; Wed, 13 Aug 2008 15:10:44 -0700 (PDT) Message-ID: <873351563.1218665444302.JavaMail.jira@brutus> Date: Wed, 13 Aug 2008 15:10:44 -0700 (PDT) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3943) NetworkTopology.pseudoSortByDistance does not need to be a synchronized method In-Reply-To: <26083534.1218586064342.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-3943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622368#action_12622368 ] Raghu Angadi commented on HADOOP-3943: -------------------------------------- I guess we missed converting this to use read lock as part of HADOOP-1269. Would that be the fix? > NetworkTopology.pseudoSortByDistance does not need to be a synchronized method > ------------------------------------------------------------------------------ > > Key: HADOOP-3943 > URL: https://issues.apache.org/jira/browse/HADOOP-3943 > Project: Hadoop Core > Issue Type: Improvement > Components: dfs > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.19.0 > > > When all requests to namenode are read, most handlers block on NetworkTopology object lock when sorting replicas. Removing this necessary lock would reduce the contention in namenode and therefore improve its throughput. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.