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

Jonathan Hsieh commented on HBASE-7957:
---------------------------------------

lgtm, +1.  I did a high level read of the ZK RW table lock code.  I'll do 
another pass and post some docs on HBASE-7305 over there.
                
> CloneSnapshotHandler.prepare() is not called by SnapshotManager
> ---------------------------------------------------------------
>
>                 Key: HBASE-7957
>                 URL: https://issues.apache.org/jira/browse/HBASE-7957
>             Project: HBase
>          Issue Type: Bug
>          Components: snapshots
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.95.0, 0.98.0
>
>         Attachments: hbase-7957_v1.patch
>
>
> Ted noticed the following exception during 
> TestSnapshotCloneIndependence#testOfflineSnapshotRegionOperationsIndependent()
> {code}
> 2013-02-27 01:45:25,785 ERROR 
> [MASTER_TABLE_OPERATIONS-juno.apache.org,46592,1361929424741-0] 
> handler.CreateTableHandler(159): Error trying to create the table 
> test-clone-test1361929508917
> java.lang.IllegalStateException: Table test-clone-test1361929508917 is not 
> locked!
>       at 
> org.apache.hadoop.hbase.master.TableLockManager$ZKTableLockManager$TableLockImpl.release(TableLockManager.java:257)
>       at 
> org.apache.hadoop.hbase.master.handler.CreateTableHandler.releaseTableLock(CreateTableHandler.java:233)
>       at 
> org.apache.hadoop.hbase.master.handler.CreateTableHandler.handleCreateTable(CreateTableHandler.java:226)
>       at 
> org.apache.hadoop.hbase.master.handler.CreateTableHandler.process(CreateTableHandler.java:153)
>       at 
> org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:130)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>       at java.lang.Thread.run(Thread.java:722)
> {code}
> See 
> https://builds.apache.org/job/HBase-TRUNK/3901/testReport/org.apache.hadoop.hbase.client/TestSnapshotCloneIndependence/testOfflineSnapshotRegionOperationsIndependent/.
>  
> The root cause is that SnapshotManager does not invoke prepare() method for 
> the created CloneSnapshotHandler. Prepare has been introduced in HBASE-7305, 
> and acquires the 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