Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 69624 invoked from network); 26 Jun 2010 04:24:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Jun 2010 04:24:17 -0000 Received: (qmail 49486 invoked by uid 500); 26 Jun 2010 04:24:16 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 49399 invoked by uid 500); 26 Jun 2010 04:24:15 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 49391 invoked by uid 99); 26 Jun 2010 04:24:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jun 2010 04:24:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jun 2010 04:24:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5Q4Noei026055 for ; Sat, 26 Jun 2010 04:23:50 GMT Message-ID: <13591390.72501277526230185.JavaMail.jira@thor> Date: Sat, 26 Jun 2010 00:23:50 -0400 (EDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6843) Entries in the FileSystem's Cache could be cleared when they are not used In-Reply-To: <12452270.71901277517410023.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-6843: ------------------------------------------- Attachment: TestFileSystemCache.java TestFileSystemCache.java: file system cache test > Entries in the FileSystem's Cache could be cleared when they are not used > ------------------------------------------------------------------------- > > Key: HADOOP-6843 > URL: https://issues.apache.org/jira/browse/HADOOP-6843 > Project: Hadoop Common > Issue Type: Bug > Reporter: Devaraj Das > Fix For: 0.22.0 > > Attachments: fs-weak-ref.4.patch, TestFileSystemCache.java > > > In FileSystem, there is a cache maintained for Filesystem instances. The entries in the cache are cleared only when explicit FileSystem.close is invoked. Applications are not careful on this aspect. Typically, they do FileSystem.get(), operate on the FileSystem, and then they just forget about it. Every FileSystem instance stores a reference to the Configuration object that it was created with. Over a period of time, as the cache grows, this can lead to OOM (we have seen this happening in our hadoop 20S clusters at Yahoo). > This jira aims at addressing the above issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.