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

Hudson commented on HBASE-8333:
-------------------------------

Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #496 (See 
[https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/496/])
    HBASE-8333 TestTableLockManager#testDelete may occasionally fail due to 
lack of synchronization between test and handler thread (Ted Yu) (Revision 
1467515)

     Result = FAILURE
tedyu : 
Files : 
* 
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java

                
> TestTableLockManager#testDelete may occasionally fail due to lack of 
> synchronization between test and handler thread
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-8333
>                 URL: https://issues.apache.org/jira/browse/HBASE-8333
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 0.98.0, 0.95.1
>
>         Attachments: 8333-v2.txt, 8333-v3.txt, 8333-v4.txt, 8333-v5.txt
>
>
> {code}
> java.lang.AssertionError
>       at org.junit.Assert.fail(Assert.java:86)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at org.junit.Assert.assertTrue(Assert.java:52)
>       at 
> org.apache.hadoop.hbase.master.TestTableLockManager.testDelete(TestTableLockManager.java:250)
> {code}
> It corresponds to this assertion:
> {code}
>     assertTrue(ZKUtil.checkExists(zkWatcher,
>         ZKUtil.joinZNode(zkWatcher.tableLockZNode, 
> Bytes.toString(TABLE_NAME))) < 0);
> {code}
> In test output 
> (https://builds.apache.org/job/HBase-TRUNK/4056/testReport/junit/org.apache.hadoop.hbase.master/TestTableLockManager/testDelete/):
> {code}
> 2013-04-12 10:46:02,642 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> handler.DeleteTableHandler(113): Table 'TestTableLevelLocks' archived!
> 2013-04-12 10:46:02,642 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> handler.DeleteTableHandler(117): Removing 'TestTableLevelLocks' descriptor.
> 2013-04-12 10:46:02,643 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> handler.DeleteTableHandler(121): Marking 'TestTableLevelLocks' as deleted.
> 2013-04-12 10:46:02,658 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> master.TableLockManager$ZKTableLockManager$TableLockImpl(253): Attempt to 
> release table write lock on :TestTableLevelLocks
> 2013-04-12 10:46:02,667 DEBUG 
> [RS_CLOSE_META-janus.apache.org,54489,1365763551867-0] util.FSUtils(211): 
> Creating 
> file=hdfs://localhost:52497/user/jenkins/hbase/.META./1028785192/.tmp/59ec68e4587d43d6bc026e4d6f2aafa2
>  with permission=rwxrwxrwx
> 2013-04-12 10:46:02,674 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> lock.ZKInterProcessLockBase(297): Successfully released 
> /hbase/table-lock/TestTableLevelLocks/write-master:362650000000002
> 2013-04-12 10:46:02,675 DEBUG 
> [MASTER_TABLE_OPERATIONS-janus.apache.org,36265,1365763551669-0] 
> master.TableLockManager$ZKTableLockManager$TableLockImpl(269): Released table 
> lock on :TestTableLevelLocks
> {code}
> This seems to be timing issue: when admin.deleteTable(TABLE_NAME) returned, 
> TableLockManager hadn't got around to finishing the release of table lock.

--
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