[ 
https://issues.apache.org/jira/browse/HBASE-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Daniel Cryans updated HBASE-1146:
--------------------------------------

    Attachment: hbase-1146.patch

Patch that removes the region server leases. Because of the old issue that the 
region servers may not know on which IP address it should be talking to with, 
the processing of znodes goes like this:

- The region server tries to create a znode under /hbase/rs/ with it's 
startcode. If it already exists (because another RS started at the same time 
and registered first), it gets a new start code and retries those 2 steps.

- The region server reports to the master.

- The master at that point tries to update the znode with the good IP address 
and at the same time puts a Watcher on it.

- When a region server crashes, ZK notifies the watcher right away and 
ServerExpirer is ran to process the shutdown.

This patch was tested with 2 region servers and it passes the unit tests.

> Replace the HRS leases with Zookeeper
> -------------------------------------
>
>                 Key: HBASE-1146
>                 URL: https://issues.apache.org/jira/browse/HBASE-1146
>             Project: Hadoop HBase
>          Issue Type: Sub-task
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.20.0
>
>         Attachments: hbase-1146.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to