Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 95675 invoked from network); 12 Oct 2007 22:37:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 22:37:44 -0000 Received: (qmail 82157 invoked by uid 500); 12 Oct 2007 22:37:29 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 82132 invoked by uid 500); 12 Oct 2007 22:37:29 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 82103 invoked by uid 99); 12 Oct 2007 22:37:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 15:37:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 22:37:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2C4577141FD for ; Fri, 12 Oct 2007 15:36:51 -0700 (PDT) Message-ID: <24513309.1192228611177.JavaMail.jira@brutus> Date: Fri, 12 Oct 2007 15:36:51 -0700 (PDT) From: "Chris Douglas (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1130) Remove unused ClientFinalizer in DFSClient In-Reply-To: <4148588.1174312712551.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-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Douglas updated HADOOP-1130: ---------------------------------- Attachment: 1130.patch DFSClient::ClientFinalizer is no longer used; no entries are ever added to it, so it can be removed without affecting anything. However, there should be a mechanism that calls FileSystem::closeAll if the JVM exits abnormally (to release leases, etc. (see DFSClient::close)). This patch clears entries from FileSystem.CACHE when there are no authorities for a given scheme and removes the shutdown hook when the cache is empty. > Remove unused ClientFinalizer in DFSClient > ------------------------------------------ > > Key: HADOOP-1130 > URL: https://issues.apache.org/jira/browse/HADOOP-1130 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0 > Reporter: Philippe Gassmann > Priority: Critical > Attachments: 1130.patch, HADOOP-1130.diff > > > The ClientFinalizer shutdown hook is not used. > This can lead to severe memory leaks if you use the DFSClient in a dynamic class loading context (such as in a webapp) as the DFSClient.ClientFinalizer class is retained in the memory by the shutdown hook. It retains also the current ClassLoader and thus all classes loaded by the ClassLoader. (Threads put in the shutdown hook are never garbage collected). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.