Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 34368 invoked from network); 24 Nov 2008 20:30:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2008 20:30:36 -0000 Received: (qmail 61901 invoked by uid 500); 24 Nov 2008 20:30:45 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 61889 invoked by uid 500); 24 Nov 2008 20:30:45 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 61878 invoked by uid 99); 24 Nov 2008 20:30:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 12:30:45 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 20:29:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A7CD234C296 for ; Mon, 24 Nov 2008 12:29:44 -0800 (PST) Message-ID: <2098058093.1227558584304.JavaMail.jira@brutus> Date: Mon, 24 Nov 2008 12:29:44 -0800 (PST) From: "dhruba borthakur (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4655) FileSystem.CACHE should be ref-counted In-Reply-To: <1633844090.1226608604134.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-4655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650310#action_12650310 ] dhruba borthakur commented on HADOOP-4655: ------------------------------------------ >'Yes, closing a FileSystem that's in use by other threads can break things. But what harm is this causing in practice? My patke is that this patch makes it easier for an application program to use the FileSystem object. RefCounting the objects make it easier for users of this API to use FileSystem object: they need not know about the existence of the cache. Maybe we can label it as a "improvement" rather than a "bug". > FileSystem.CACHE should be ref-counted > -------------------------------------- > > Key: HADOOP-4655 > URL: https://issues.apache.org/jira/browse/HADOOP-4655 > Project: Hadoop Core > Issue Type: Bug > Components: dfs, fs > Affects Versions: 0.18.1, 0.18.2, 0.19.0, 0.19.1, 0.20.0 > Reporter: Hong Tang > > FileSystem.CACHE is not ref-counted, and could lead to resource leakage. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.