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 0D00810AB1 for ; Wed, 16 Jul 2014 19:47:08 +0000 (UTC) Received: (qmail 7228 invoked by uid 500); 16 Jul 2014 19:47:07 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 7178 invoked by uid 500); 16 Jul 2014 19:47:07 -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 7166 invoked by uid 99); 16 Jul 2014 19:47:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2014 19:47:07 +0000 Date: Wed, 16 Jul 2014 19:47:07 +0000 (UTC) From: "Andrew Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6690) Deduplicate xattr names in memory 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-6690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063983#comment-14063983 ] Andrew Wang commented on HDFS-6690: ----------------------------------- I think throwing down FSDirectory lock asserts in this class is somewhat gross, since these are all static methods. We could pass in the FSDirectory each time to do this check, but I see XAttrStorage as a helper class where we could let this kind of check slide. I can do it though. > Deduplicate xattr names in memory > --------------------------------- > > Key: HDFS-6690 > URL: https://issues.apache.org/jira/browse/HDFS-6690 > Project: Hadoop HDFS > Issue Type: Improvement > Components: namenode > Affects Versions: 2.5.0 > Reporter: Andrew Wang > Assignee: Andrew Wang > Attachments: hdfs-6690.001.patch, hdfs-6690.002.patch > > > When the same string is used repeatedly for an xattr name, we could potentially save some NN memory by deduplicating the strings. -- This message was sent by Atlassian JIRA (v6.2#6252)