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 93A5861E7 for ; Fri, 24 Jun 2011 18:00:11 +0000 (UTC) Received: (qmail 19919 invoked by uid 500); 24 Jun 2011 18:00:11 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 19794 invoked by uid 500); 24 Jun 2011 18:00:11 -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 19786 invoked by uid 99); 24 Jun 2011 18:00:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 18:00:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 18:00:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4AC5842D98A for ; Fri, 24 Jun 2011 17:59:50 +0000 (UTC) Date: Fri, 24 Jun 2011 17:59:50 +0000 (UTC) From: "Aaron T. Myers (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <338559931.37836.1308938390302.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1271780704.23333.1308632387413.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2092) Create a light inner conf class in DFSClient 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-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054585#comment-13054585 ] Aaron T. Myers commented on HDFS-2092: -------------------------------------- bq. Hi Aaron, we did see some cases in the past that some users put a large object in conf and then JT/TT ran out of memory. Indeed, users can put arbitrary large objects in conf. Thanks for this explanation, Nicholas. That does indeed seem like a problem worthy of attack. bq. So this change also prevents such problems. I'm not entirely convinced of this. Does this change definitely prevent these problems? Is it really the case that the JT could've garbage collected these {{JobConf}} instances, were it not for the {{DFSClient}} still holding a reference? If that's the intended goal, I'd really like to see a little benchmark done demonstrating the memory use of the JT with large {{JobConf}} objects before and after this patch. If this patch does indeed address this issue, I could even imagine a unit test being written which could ensure that no long-lived {{JobConf}} references sneak back into the JT. > Create a light inner conf class in DFSClient > -------------------------------------------- > > Key: HDFS-2092 > URL: https://issues.apache.org/jira/browse/HDFS-2092 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client > Affects Versions: 0.23.0 > Reporter: Bharath Mundlapudi > Assignee: Bharath Mundlapudi > Fix For: 0.23.0 > > Attachments: HDFS-2092-1.patch, HDFS-2092-2.patch > > > At present, DFSClient stores reference to configuration object. Since, these configuration objects are pretty big at times can blot the processes which has multiple DFSClient objects like in TaskTracker. This is an attempt to remove the reference of conf object in DFSClient. > This patch creates a light inner conf class and copies the required keys from the Configuration object. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira