Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 730B7200B5C for ; Wed, 27 Jul 2016 23:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71D86160A6F; Wed, 27 Jul 2016 21:59:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C20D5160A90 for ; Wed, 27 Jul 2016 23:59:21 +0200 (CEST) Received: (qmail 88881 invoked by uid 500); 27 Jul 2016 21:59:21 -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 88795 invoked by uid 99); 27 Jul 2016 21:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 21:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A5B372C0D62 for ; Wed, 27 Jul 2016 21:59:20 +0000 (UTC) Date: Wed, 27 Jul 2016 21:59:20 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16295) InvalidFamilyOperationException while deleting a column family in shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 27 Jul 2016 21:59:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396486#comment-15396486 ] Matteo Bertozzi commented on HBASE-16295: ----------------------------------------- just tried a simple create and alter, but it seems good. do you have a unit test or a sequence of command to reproduce? {noformat} hbase(main):001:0> create 'testtb', 'f', 'f2' 0 row(s) in 1.4700 seconds hbase(main):002:0> alter 'testtb', 'delete' => 'f2' Updating all regions with the new schema... 1/1 regions updated. Done. 0 row(s) in 2.2270 seconds {noformat} > InvalidFamilyOperationException while deleting a column family in shell > ----------------------------------------------------------------------- > > Key: HBASE-16295 > URL: https://issues.apache.org/jira/browse/HBASE-16295 > Project: HBase > Issue Type: Bug > Components: master, shell > Affects Versions: 1.3.0 > Reporter: Ashu Pachauri > Priority: Minor > > The column family exists and is actually deleted, the regions are also reopened. But, the following exception is thrown in the shell: > {code} > alter 't1', 'delete' => 'cf' > ERROR: org.apache.hadoop.hbase.InvalidFamilyOperationException: Family 'cf' does not exist, so it cannot be deleted > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106) > at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95) > at org.apache.hadoop.hbase.util.ForeignExceptionUtil.toIOException(ForeignExceptionUtil.java:45) > at org.apache.hadoop.hbase.procedure2.RemoteProcedureException.fromProto(RemoteProcedureException.java:114) > at org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:85) > at org.apache.hadoop.hbase.master.HMaster.deleteColumn(HMaster.java:1916) > at org.apache.hadoop.hbase.master.MasterRpcServices.deleteColumn(MasterRpcServices.java:474) > at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:55658) > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2170) > at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:109) > at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:137) > at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:112) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.InvalidFamilyOperationException): Family 'cf' does not exist, so it cannot be deleted > at org.apache.hadoop.hbase.master.procedure.DeleteColumnFamilyProcedure.prepareDelete(DeleteColumnFamilyProcedure.java:281) > at org.apache.hadoop.hbase.master.procedure.DeleteColumnFamilyProcedure.executeFromState(DeleteColumnFamilyProcedure.java:93) > at org.apache.hadoop.hbase.master.procedure.DeleteColumnFamilyProcedure.executeFromState(DeleteColumnFamilyProcedure.java:48) > at org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:119) > at org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:465) > at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:1061) > at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:856) > at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:809) > at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.access$400(ProcedureExecutor.java:75) > at org.apache.hadoop.hbase.procedure2.ProcedureExecutor$2.run(ProcedureExecutor.java:495) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)