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 29966107C4 for ; Thu, 27 Feb 2014 21:39:26 +0000 (UTC) Received: (qmail 98959 invoked by uid 500); 27 Feb 2014 21:39:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 98919 invoked by uid 500); 27 Feb 2014 21:39:21 -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 98904 invoked by uid 99); 27 Feb 2014 21:39:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Feb 2014 21:39:20 +0000 Date: Thu, 27 Feb 2014 21:39:20 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10576) Custom load balancer to co-locate the regions of two tables which are having same split keys 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-10576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915076#comment-13915076 ] Ted Yu commented on HBASE-10576: -------------------------------- Please fix the 2 new findbugs warnings - HBASE-10624 covers the other two. {code} + private static final Random RANDOM = new Random(System.currentTimeMillis()); {code} Use EnvironmentEdge above. {code} + Map tabkeKeys = this.colocationInfo.get(tableName); {code} We should move away from Writables, right ? In getServerNameFromMap(): {code} + TableName mappedTable = getMappedTableToColocate(regionInfo.getTable()); {code} What if mappedTable is the same as tableName ? > Custom load balancer to co-locate the regions of two tables which are having same split keys > -------------------------------------------------------------------------------------------- > > Key: HBASE-10576 > URL: https://issues.apache.org/jira/browse/HBASE-10576 > Project: HBase > Issue Type: Sub-task > Components: Balancer > Reporter: rajeshbabu > Assignee: rajeshbabu > Attachments: HBASE-10576.patch > > > To support local indexing both user table and index table should have same split keys. This issue to provide custom balancer to colocate the regions of two tables which are having same split keys. > This helps in Phoenix as well. -- This message was sent by Atlassian JIRA (v6.1.5#6160)