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 2283F18FF1 for ; Wed, 23 Dec 2015 12:43:47 +0000 (UTC) Received: (qmail 87677 invoked by uid 500); 23 Dec 2015 12:43:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 87628 invoked by uid 500); 23 Dec 2015 12:43:46 -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 87603 invoked by uid 99); 23 Dec 2015 12:43:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 12:43:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A65DF2C1F5D for ; Wed, 23 Dec 2015 12:43:46 +0000 (UTC) Date: Wed, 23 Dec 2015 12:43:46 +0000 (UTC) From: "linbao111 (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14611) Backport HBASE-14473 (Compute region locality in parallel) to 0.98 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-14611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069588#comment-15069588 ] linbao111 commented on HBASE-14611: ----------------------------------- i supect that something wrong with following patch code: - cache = createCache(conf.getInt("hbase.master.balancer.regionLocationCacheTime", 30)); + // Preserve this tunable in 0.98 + this.cacheTime = TimeUnit.SECONDS.toMillis( + conf.getInt("hbase.master.balancer.regionLocationCacheTime", 30)); before patch,hbase.master.balancer.regionLocationCacheTime default 30minutes after patch hbase.master.balancer.regionLocationCacheTime default 30 seconds am i right? > Backport HBASE-14473 (Compute region locality in parallel) to 0.98 > ------------------------------------------------------------------ > > Key: HBASE-14611 > URL: https://issues.apache.org/jira/browse/HBASE-14611 > Project: HBase > Issue Type: Task > Reporter: Andrew Purtell > Assignee: Andrew Purtell > Fix For: 0.98.16 > > Attachments: HBASE-14611-0.98.patch > > > [~eclark] contributed a nice change on HBASE-14473 that scales calculation of locality balance cost to larger clusters. I'd like to bring this back to 0.98 for folks running it on larger clusters. The changes require a partial rewrite of RegionLocationFinder hence a backport issue. > The difference between this backport and RegionLocationFinder on later branches is we preserve the ability to change the expiration time of cache items with the configuration parameter "hbase.master.balancer.regionLocationCacheTime". > The difference between RegionLocationFinder in 0.98 before and after this change is the expiration time of cache entries will be set according to when they are written into the cache instead of from when they are last accessed, which seems better to me. -- This message was sent by Atlassian JIRA (v6.3.4#6332)