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 1486111A3D for ; Sat, 20 Sep 2014 00:14:36 +0000 (UTC) Received: (qmail 90533 invoked by uid 500); 20 Sep 2014 00:14:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 90494 invoked by uid 500); 20 Sep 2014 00:14:35 -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 90480 invoked by uid 99); 20 Sep 2014 00:14:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2014 00:14:35 +0000 Date: Sat, 20 Sep 2014 00:14:35 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11974) When a disabled table is scanned, NotServingRegionException is thrown instead of TableNotEnabledException 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-11974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enis Soztutar updated HBASE-11974: ---------------------------------- Attachment: hbase-11974_v8.patch Attaching v8 patch, which is very similar to Ted's v8 patch, but does not contain the changes in RegionServerCallable which was introduced because of hanging test TestReplicasClient. The test caused a hang because the test itself shuts down the master, so any relocateRegion() call hangs waiting to do the isTableDisabled() call. v8 patch instead mocks the Connection to not rely on master for isTableDisabled() call. I think we can get this patch in which makes the behavior on par with 0.98 in branch-1. In master instead of going to zk, we go to hmaster. The hmaster RPC is already there even w/o this patch (in regular get). If we want to eliminate hmaster dependency, we can either get rid of relocateRegion() call all together (which will cause an rpc to a disable table take very long via retries), or somehow mark the table state in meta. My proposal is we commit this patch, and do a follow up issue for this. > When a disabled table is scanned, NotServingRegionException is thrown instead of TableNotEnabledException > --------------------------------------------------------------------------------------------------------- > > Key: HBASE-11974 > URL: https://issues.apache.org/jira/browse/HBASE-11974 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Attachments: 11974-test.patch, 11974-v1.txt, 11974-v2.txt, 11974-v3.txt, 11974-v4.txt, 11974-v5.txt, 11974-v6.txt, 11974-v7.txt, hbase-11974_v8.patch > > > When a disabled table is scanned, TableNotEnabledException should be thrown. > However, currently NotServingRegionException is thrown. > Thanks to Romil Choksi who discovered this problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)