hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgeny Ryabitskiy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1145) Ensure that there is only 1 Master with Zookeeper
Date Sat, 24 Jan 2009 16:44:59 GMT

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

Evgeny Ryabitskiy commented on HBASE-1145:
------------------------------------------

For this issue can be used Ephemeral ZNode created by HMaster.

HMaster can use following algorithm for enshuring:

1) after establishing connection to ZK:
     exists(masterZNode, false);
2.1) if NOT exists:
     create(masterZNode, "Master is connected!",EPHEMERAL);
     END;
2.2)  if exists:
     Master is already connected to ZK! 
     close connection;  exit Master with fail

> Ensure that there is only 1 Master with Zookeeper
> -------------------------------------------------
>
>                 Key: HBASE-1145
>                 URL: https://issues.apache.org/jira/browse/HBASE-1145
>             Project: Hadoop HBase
>          Issue Type: Sub-task
>            Reporter: Jean-Daniel Cryans
>            Assignee: Evgeny Ryabitskiy
>


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


Mime
View raw message