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 9A6DA10E51 for ; Wed, 2 Oct 2013 01:51:24 +0000 (UTC) Received: (qmail 43221 invoked by uid 500); 2 Oct 2013 01:51:24 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 43186 invoked by uid 500); 2 Oct 2013 01:51:24 -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 43176 invoked by uid 99); 2 Oct 2013 01:51:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 01:51:24 +0000 Date: Wed, 2 Oct 2013 01:51:23 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-9698) HBCK does not handle tables with no regions left 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-9698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enis Soztutar updated HBASE-9698: --------------------------------- Attachment: hbase-9698_v1.patch Attaching a patch which solves the problem by ensuring that even though no region info is loaded from meta or hdfs, we still keep track of the table, and if there are no regions for a table, we treat this as a hole covering the entire range. > HBCK does not handle tables with no regions left > ------------------------------------------------ > > Key: HBASE-9698 > URL: https://issues.apache.org/jira/browse/HBASE-9698 > Project: HBase > Issue Type: Bug > Reporter: Enis Soztutar > Assignee: Enis Soztutar > Fix For: 0.98.0, 0.96.1 > > Attachments: hbase-9698_v1.patch > > > hbck does not handle the case where all the regions of a table is gone. To reproduce this: > 1. create table with one region > 2. delete the region directory > 3. run hbck --repair, which removes the region from meta as well > 4. now, the meta won't contain the region, but the table dir in hdfs will be there. -- This message was sent by Atlassian JIRA (v6.1#6144)