Details
Description
[Scenario for Reproducing ] :
1. Create and delete 10 different HBase tables concurrently (10 threads creating, disabling and deleting their own tables)
2. Check the HBase Master logs( Null Pointer Exceptions observed caused by data race)
ERROR [main-EventThread] zookeeper.ClientCnxn: Error while calling watcher java.lang.NullPointerException at org.apache.hadoop.hbase.zookeeper.ZKUtil$NodeAndData.isEmpty(ZKUtil.java:667) at org.apache.hadoop.hbase.security.access.ZKPermissionWatcher.refreshNodes(ZKPermissionWatcher.java:152) at org.apache.hadoop.hbase.security.access.ZKPermissionWatcher.nodeChildrenChanged(ZKPermissionWatcher.java:142) at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.process(ZooKeeperWatcher.java:439) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:543) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:518) 2015-06-05 20:32:04,553 INFO [B.defaultRpcServer.handler=24,queue=4,port=16000] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x200541f1fd400c0 2015-06-05 20:32:04,561 INFO [B.defaultRpcServer.handler=24,queue=4,port=16000] zookeeper.ZooKeeper: Session: 0x200541f1fd400c0 closed 2015-06-05 20:32:04,561 INFO [B.defaultRpcServer.handler=24,queue=4,port=16000-EventThread] zookeeper.ClientCnxn: EventThread shut down 2015-06-05 20:32:04,631 INFO [B.defaultRpcServer.handler=7,queue=2,port=16000] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x200541f1fd400c2 2015-06-05 20:32:04,644 INFO [B.defaultRpcServer.handler=7,queue=2,port=16000] zookeeper.ZooKeeper: Session: 0x200541f1fd400c2 closed 2015-06-05 20:32:04,644 INFO [B.defaultRpcServer.handler=7,queue=2,port=16000-EventThread] zookeeper.ClientCnxn: EventThread shut down