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 0CE1D4DCA for ; Fri, 1 Jul 2011 05:02:11 +0000 (UTC) Received: (qmail 94623 invoked by uid 500); 1 Jul 2011 05:02:10 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 94482 invoked by uid 500); 1 Jul 2011 05:01:54 -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 94471 invoked by uid 99); 1 Jul 2011 05:01:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 05:01:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 05:01:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C8E0143D9B8 for ; Fri, 1 Jul 2011 05:01:28 +0000 (UTC) Date: Fri, 1 Jul 2011 05:01:28 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: <776017013.7827.1309496488819.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1164118432.7813.1309495768420.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4052) Enabling a table after master switch is not allowing table scan. Throws NotServingRegionException 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-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058215#comment-13058215 ] ramkrishna.s.vasudevan commented on HBASE-4052: ----------------------------------------------- As per my analysis the problem is that, When we do a remove all the online regions are closed. In the Enable table flow {noformat} private List regionsToAssign(final List regionsInMeta) throws IOException { final List onlineRegions = this.assignmentManager.getRegionsOfTable(tableName); regionsInMeta.removeAll(onlineRegions); return regionsInMeta; } {noformat} We remove the regions if it is already online. But as per the bug, enable is called after switching, So while the standby master becomes active, in the rebuildUserRegion api, we add all the regions from the Meta and we dont check if it is already disabled. So when the flow comes to enable (regionsToAssign()) we consider the region to be onlined already. Finally when we try to scan the table, we get NotServingRegionException. Correct me if am wrong in my analysis. > Enabling a table after master switch is not allowing table scan. Throws NotServingRegionException > -------------------------------------------------------------------------------------------------- > > Key: HBASE-4052 > URL: https://issues.apache.org/jira/browse/HBASE-4052 > Project: HBase > Issue Type: Bug > Environment: Linux > Reporter: ramkrishna.s.vasudevan > > Following is the scenario: > Start RS and Active and standby masters > Create table and insert data. > Disable the table. > Stop the active master and switch to the standby master. > Now enable the table. > Do a scan on the enabled table. > NotServingRegionException is Thrown. > But the same works well when we dont switch the master. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira