You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2016/07/27 21:59:20 UTC

[jira] [Commented] (HBASE-16295) InvalidFamilyOperationException while deleting a column family in shell

    [ 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)