[ 
https://issues.apache.org/jira/browse/HBASE-16295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396601#comment-15396601
 ] 

Ashu Pachauri commented on HBASE-16295:
---------------------------------------

I mistakenly mentioned it affecting 1.3, I faced this on 1.2. 
[~mbertozzi] I have not tried to reproduce it yet, I faced this today on a 
production cluster. I filed this issue to make sure it's tracked, I'll post 
more details if I am able to reproduce it.
[~syuanjiang] No, I cannot reproduce it consistently since this happened on a 
production system. I'll replicating the setup on a dev cluster and see if I can 
reproduce it. Also, I made sure that the column family actually existed right 
before issuing the delete command.

> 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.2.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)

Reply via email to