Description
When performing append operation on non-existing column families, NullPointerException is thrown in hbase shell as shown below:
hbase(main):007:0> append 't1', 'r1', 'none:c1', '123' ERROR: java.io.IOException at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:106) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.apache.hadoop.hbase.regionserver.HRegion.doGet(HRegion.java:6987) at org.apache.hadoop.hbase.regionserver.HRegion.append(HRegion.java:7048) at org.apache.hadoop.hbase.regionserver.RSRpcServices.append(RSRpcServices.java:580) at org.apache.hadoop.hbase.regionserver.RSRpcServices.mutate(RSRpcServices.java:2206) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32452) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2133) ... 4 more
This seems to be caused by absence of check for valid family names as done in other operations like 'Put' in HRegion.java