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 0665BD440 for ; Fri, 26 Oct 2012 02:31:14 +0000 (UTC) Received: (qmail 87754 invoked by uid 500); 26 Oct 2012 02:31:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 87623 invoked by uid 500); 26 Oct 2012 02:31:13 -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 87608 invoked by uid 99); 26 Oct 2012 02:31:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 02:31:13 +0000 Date: Fri, 26 Oct 2012 02:31:13 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1601278917.30485.1351218673397.JavaMail.jiratomcat@arcas> In-Reply-To: <196225752.30030.1351209552419.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-4112) A few improvements on INodeDirectory 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-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HDFS-4112: ----------------------------------------- Attachment: h4112_20121025c.patch h4112_20121025c.patch: reverts the ThreadLocal changes. > A few improvements on INodeDirectory > ------------------------------------ > > Key: HDFS-4112 > URL: https://issues.apache.org/jira/browse/HDFS-4112 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h4112_20121025b.patch, h4112_20121025c.patch, h4112_20121025.patch > > > Below are a few improvements on INodeDirectory > - Add a utility method for casting from INode; > - avoid creating new empty list and INode arrays; > - renames getChildren() and getChildrenRaw(), rewrite the javadoc. > Also, > - clean up isDirEmpty(..) and isEmpty() in FSDirectory -- 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