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 0F739D9D0 for ; Mon, 6 Aug 2012 13:01:03 +0000 (UTC) Received: (qmail 67277 invoked by uid 500); 6 Aug 2012 13:01:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 67225 invoked by uid 500); 6 Aug 2012 13:01:02 -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 67213 invoked by uid 99); 6 Aug 2012 13:01:02 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 13:01:02 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 79CA214052D for ; Mon, 6 Aug 2012 13:01:02 +0000 (UTC) Date: Mon, 6 Aug 2012 13:01:02 +0000 (UTC) From: "Jie Huang (JIRA)" To: issues@hbase.apache.org Message-ID: <625919339.16500.1344258062500.JavaMail.jiratomcat@issues-vm> In-Reply-To: <703046076.16491.1344257282688.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (HBASE-6516) hbck cannot detect any IOException while ".tableinfo" file is missing 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-6516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jie Huang updated HBASE-6516: ----------------------------- Attachment: hbase-6516.patch Here proposed a possible fix. The basic idea is to check if the HTableDescriptor *htd* is null. If it is null, we'd better to print out the error message and throw an IOException accordingly. Any comment? Thanks. > hbck cannot detect any IOException while ".tableinfo" file is missing > --------------------------------------------------------------------- > > Key: HBASE-6516 > URL: https://issues.apache.org/jira/browse/HBASE-6516 > Project: HBase > Issue Type: Bug > Components: hbck > Affects Versions: 0.94.0, 0.96.0 > Reporter: Jie Huang > Attachments: hbase-6516.patch > > > HBaseFsck checks those missing .tableinfo files in loadHdfsRegionInfos() function. However, no IoException will be catched while .tableinfo is missing, since "FSTableDescriptors.getTableDescriptor" doesn't throw any IoException. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira