[ https://issues.apache.org/jira/browse/HBASE-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622975#action_12622975 ]
Jean-Daniel Cryans commented on HBASE-833: ------------------------------------------ It already does in HRegion.checkColumn, my NPE was just hiding it. > Doing an insert with an unknown family throws a NPE in HRS > ---------------------------------------------------------- > > Key: HBASE-833 > URL: https://issues.apache.org/jira/browse/HBASE-833 > Project: Hadoop HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.2.0 > Reporter: Jean-Daniel Cryans > Assignee: Jean-Daniel Cryans > Priority: Trivial > Fix For: 0.2.1, 0.3.0 > > Attachments: hbase-833.patch > > > When I added the validation of value's length, I did not check if the family > existed. Throws an ugly: > {code} > 08/08/15 14:15:55 DEBUG client.HConnectionManager$TableServers: reloading > table servers because: java.io.IOException: java.lang.NullPointerException > at > org.apache.hadoop.hbase.regionserver.HRegionServer.validateValuesLength(HRegionServer.java:1161) > at > org.apache.hadoop.hbase.regionserver.HRegionServer.batchUpdate(HRegionServer.java:1136) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.HbaseRPC$Server.call(HbaseRPC.java:473) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:896) > {code} > with some retries. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.