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

Enis Soztutar commented on HBASE-7933:
--------------------------------------

I think the bug is a race condition for the parent znode for the table. 
TableLockManager#tableDeleted() deletes parent znode, so that we do not leak 
znodes for deleted tables. 

{code}
2013-02-25 13:42:09,294 DEBUG 
[MASTER_TABLE_OPERATIONS-10.11.3.82,54545,1361828508393-0] 
master.TableLockManager$ZKTableLockManager$TableLockImpl(253): Attempt to 
release table write lock on :test
2013-02-25 13:42:09,298 DEBUG [IPC Server handler 3 on 54545] 
master.TableLockManager$ZKTableLockManager$TableLockImpl(225): Attempt to 
acquire table write lock on :test for:C_M_CREATE_TABLE
2013-02-25 13:42:09,309 DEBUG 
[MASTER_TABLE_OPERATIONS-10.11.3.82,54545,1361828508393-0] 
lock.ZKInterProcessLockBase(296): Successfully released 
/hbase/table-lock/test/write-master:545450000000002
2013-02-25 13:42:09,309 DEBUG 
[MASTER_TABLE_OPERATIONS-10.11.3.82,54545,1361828508393-0] 
master.TableLockManager$ZKTableLockManager$TableLockImpl(269): Released table 
lock on :test
2013-02-25 13:42:09,309 INFO  [IPC Server handler 3 on 54545] 
zookeeper.RecoverableZooKeeper(460): Node /hbase/table-lock/test already exists 
and this is not a retry
2013-02-25 13:42:09,311 WARN  [IPC Server handler 3 on 54545] 
lock.ZKInterProcessLockBase(229): Failed to create znode: 
/hbase/table-lock/test/write-
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode 
for /hbase/table-lock/test/write-master:54545
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
        at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
        at 
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.createSequential(RecoverableZooKeeper.java:496)
        at 
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.create(RecoverableZooKeeper.java:427)
        at 
org.apache.hadoop.hbase.zookeeper.ZKUtil.createNodeIfNotExistsNoWatch(ZKUtil.java:1069)
{code}
                
> NPE in TableLockManager
> -----------------------
>
>                 Key: HBASE-7933
>                 URL: https://issues.apache.org/jira/browse/HBASE-7933
>             Project: HBase
>          Issue Type: Bug
>          Components: master, Zookeeper
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.96.0
>
>
> We are getting NPE in TableLockManager sometimes in tests. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to