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 AD79910EDD for ; Thu, 20 Nov 2014 04:32:34 +0000 (UTC) Received: (qmail 96740 invoked by uid 500); 20 Nov 2014 04:32:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 96615 invoked by uid 500); 20 Nov 2014 04:32:34 -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 96311 invoked by uid 99); 20 Nov 2014 04:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 04:32:34 +0000 Date: Thu, 20 Nov 2014 04:32:34 +0000 (UTC) From: "Liu Shaohui (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-12542) Delete a family of table online will crash regionserver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Liu Shaohui created HBASE-12542: ----------------------------------- Summary: Delete a family of table online will crash regionserver Key: HBASE-12542 URL: https://issues.apache.org/jira/browse/HBASE-12542 Project: HBase Issue Type: Bug Components: regionserver Reporter: Liu Shaohui Assignee: Liu Shaohui Priority: Critical Fix For: 2.0.0, 0.94.25 Using alter command to delete a family of table online will make the regionsevers that serve the regions of the table crash. {code} alter 't', NAME => 'f', METHOD => 'delete' {code} The reason is that TableDeleteFamilyHandler in HMaster delete the family dir firstly and then reopen all the regions of table. When the regionserver reopen the region, it will crash for the exception in flushing memstore to hfile of the deleted family during closing the region, because the parent dir of the hfile has been deleted in TableDeleteFamilyHandler. See: TableDeleteFamilyHandler.java #57 A simple solution is change the order of operations in TableDeleteFamilyHandler. - update table descriptor first, - reopen all the regions, - delete the the family dir at last. Suggestions are welcomed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)