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 B311210B3D for ; Fri, 12 Jul 2013 18:35:59 +0000 (UTC) Received: (qmail 7644 invoked by uid 500); 12 Jul 2013 18:35:54 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 7527 invoked by uid 500); 12 Jul 2013 18:35:54 -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 7129 invoked by uid 99); 12 Jul 2013 18:35:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 18:35:54 +0000 Date: Fri, 12 Jul 2013 18:35:54 +0000 (UTC) From: "Kihwal Lee (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-1775) getContentSummary should hold the FSNamesystem readlock 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-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kihwal Lee resolved HDFS-1775. ------------------------------ Resolution: Duplicate > getContentSummary should hold the FSNamesystem readlock > ------------------------------------------------------- > > Key: HDFS-1775 > URL: https://issues.apache.org/jira/browse/HDFS-1775 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Dmytro Molkov > Assignee: Dmytro Molkov > Priority: Minor > > Right now the getContentSummary call on the namenode only holds the FSDirectory lock, but not the FSNamesystem lock. What we are seeing because of that is: > 1) getContentSummary takes the read lock on FSDirectory > 2) the write operation comes and takes a write lock on FSNamesystem and waits for getContentSummary to finish to get a write lock on FSDirectory > As a result other read operations can't be executed. Since getContentSummary can take a while to execute on large directories, the performance would be improved if we hold a readlock while doing that. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira