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

Virag Kothari commented on HBASE-11531:
---------------------------------------

bq. I see the problem now: you restarted the master during the first phase of 
the migration, while some region is opening

Thanks [~jxiang]
Yeah, I believe I might be doing that. Running the same test again today on 
0.98 with few regions under region-in-transition znode, the first phase of 
migration passes (hbase.assignment.usezk=true and 
hbase.assignment.usezk.migrating = true)
However, on running the second phase (hbase.assignment.usezk=false) after that, 
master aborts with the following exception
{quote}
Unhandled exception. Starting shutdown.
org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode = 
Directory not empty for /hbase1/region-in-transition
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:125)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
        at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
        at 
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.delete(RecoverableZooKeeper.java:156)
        at 
org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNodeFailSilent(ZKUtil.java:1300)
        at 
org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNodeFailSilent(ZKUtil.java:1292)
        at 
org.apache.hadoop.hbase.master.AssignmentManager.joinCluster(AssignmentManager.java:482)
        at 
org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:909)
{quote}
Seems like deleteNodeFailSilent complains if there are child znodes. Do we need 
to remove all the child znodes?


> RegionStates for regions under region-in-transition znode are not updated on 
> startup
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-11531
>                 URL: https://issues.apache.org/jira/browse/HBASE-11531
>             Project: HBase
>          Issue Type: Bug
>          Components: Region Assignment
>    Affects Versions: 0.99.0
>            Reporter: Virag Kothari
>         Attachments: sample.patch
>
>
> While testing HBASE-11059, saw that if there are regions under 
> region-in-transition znode their states are not updated in META and master 
> memory on startup.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to