Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 404CDE71A for ; Mon, 27 May 2013 11:32:44 +0000 (UTC) Received: (qmail 11829 invoked by uid 500); 27 May 2013 11:29:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 3928 invoked by uid 500); 27 May 2013 11:29:00 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 66790 invoked by uid 99); 27 May 2013 11:09:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 11:09:20 +0000 Date: Mon, 27 May 2013 11:09:20 +0000 (UTC) From: "samar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-5024) A thread named LruBlockCache.EvictionThread remains after the shutdown of a cluster 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/HBASE-5024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13667695#comment-13667695 ] samar commented on HBASE-5024: ------------------------------ Hope i got it right in class HRegionServer if (cacheConfig.isBlockCacheEnabled()) { cacheConfig.getBlockCache().shutdown(); } LruBlockCache.shutdown has { ... this.evictionThread.shutdown(); } which should shutdown the eviction thread. > A thread named LruBlockCache.EvictionThread remains after the shutdown of a cluster > ----------------------------------------------------------------------------------- > > Key: HBASE-5024 > URL: https://issues.apache.org/jira/browse/HBASE-5024 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.0 > Reporter: Nicolas Liochon > Priority: Minor > > There is no cleanup function in hbase.io.hfile.CacheConfig. The cache is a singleton, shared by all cluster if we launch more than one cluster on a test. > Related code is: > {noformat} > /** > * Static reference to the block cache, or null if no caching should be used > * at all. > */ > private static BlockCache globalBlockCache; > /** Boolean whether we have disabled the block cache entirely. */ > private static boolean blockCacheDisabled = false; > /** > * Returns the block cache or null in case none should be used. > * > * @param conf The current configuration. > * @return The block cache or null. > */ > private static synchronized BlockCache instantiateBlockCache(){ > // initiate globalBlockCache > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira