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 4E92A10CB9 for ; Wed, 26 Aug 2015 05:04:46 +0000 (UTC) Received: (qmail 95357 invoked by uid 500); 26 Aug 2015 05:04:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95140 invoked by uid 500); 26 Aug 2015 05:04:45 -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 95128 invoked by uid 99); 26 Aug 2015 05:04:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 05:04:45 +0000 Date: Wed, 26 Aug 2015 05:04:45 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14291) NPE On StochasticLoadBalancer Balance Involving RS With No Regions 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-14291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712512#comment-14712512 ] Andrew Purtell commented on HBASE-14291: ---------------------------------------- I needed to revert this from 0.98 branch in order to successfully revert HBASE-13376. Doesn't look like this is needed in 0.98 now. > NPE On StochasticLoadBalancer Balance Involving RS With No Regions > ------------------------------------------------------------------ > > Key: HBASE-14291 > URL: https://issues.apache.org/jira/browse/HBASE-14291 > Project: HBase > Issue Type: Bug > Components: Balancer > Affects Versions: 2.0.0 > Environment: Pseudo-distributed (2 local RegionServers), Hadoop 2.5.1, Java 1.7.0_71 > Reporter: Matt Warhaftig > Assignee: Ted Yu > Priority: Minor > Fix For: 2.0.0, 1.3.0 > > Attachments: 14291-v1.txt, hbase-mwarhaftig-master-Matts-MBP.log > > > When StochasticLoadBalancer attempts to balance a local RS with multiple regions with another local RS that had no regions the HBase shell call of 'balancer' gets the following NPE: > {noformat} > ERROR: java.io.IOException > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175) > at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:106) > at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130) > at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.NullPointerException > at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.getLeastLoadedTopServerForRegion(BaseLoadBalancer.java:863) > at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer$LocalityBasedCandidateGenerator.generate(StochasticLoadBalancer.java:724) > at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:325) > at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:263) > at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1264) > at org.apache.hadoop.hbase.master.MasterRpcServices.balance(MasterRpcServices.java:413) > at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52450) > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2133) > ... 4 more > {noformat} > Issue only occurs when one of the RSs has no regions before balancing. Also, unsure if distributed RSs would also have same issue. Attached 'hbase-mwarhaftig-master-Matts-MBP.log' is master's log of the error occurring. > SimpleLoadBalancer rebalances correctly when used in the same situation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)