You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2009/11/10 00:26:32 UTC

[jira] Created: (HBASE-1965) On restart of branch, master complains about not being able to set safe mode

On restart of branch, master complains about not being able to set safe mode
----------------------------------------------------------------------------

                 Key: HBASE-1965
                 URL: https://issues.apache.org/jira/browse/HBASE-1965
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack


A few fellows have reported this issue.  I see it myself if I restart the cluster.   You'll see:

{code}
ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /hbase/safe-mode
{code}

... over and over again in master log.



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


[jira] Commented: (HBASE-1965) On restart of branch, master complains about not being able to set safe mode

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775187#action_12775187 ] 

stack commented on HBASE-1965:
------------------------------

Here's a hack patch:

{code}
Index: src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java
===================================================================
--- src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java    (revision 833622)
+++ src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java    (working copy)
@@ -501,6 +501,11 @@
       LOG.warn("Failed to create out of safe mode in ZooKeeper: " + e);
     } catch (KeeperException e) {
       LOG.warn("Failed to create out of safe mode in ZooKeeper: " + e);
+      if (e.getMessage().contains("KeeperErrorCode = NodeExists")) {
+        LOG.info("Node exists; just move on");
+        return true;
+      }
+
     }
{code}


It does this:

{code}
2009-11-09 23:23:37,868 [IPC Server handler 8 on 60001] WARN org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /hbase/safe-mode
2009-11-09 23:23:37,868 [IPC Server handler 8 on 60001] INFO org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Node exists; just move on
{code}


Seems to work.

This is for branch only.  Safe-mode is gone in TRUNK

> On restart of branch, master complains about not being able to set safe mode
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-1965
>                 URL: https://issues.apache.org/jira/browse/HBASE-1965
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>
> A few fellows have reported this issue.  I see it myself if I restart the cluster.   You'll see:
> {code}
> ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /hbase/safe-mode
> {code}
> ... over and over again in master log.

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


[jira] Resolved: (HBASE-1965) On restart of branch, master complains about not being able to set safe mode

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-1965.
--------------------------

       Resolution: Fixed
    Fix Version/s: 0.20.2
         Assignee: stack

Applied to branch.  Thanks for review Andrew.

> On restart of branch, master complains about not being able to set safe mode
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-1965
>                 URL: https://issues.apache.org/jira/browse/HBASE-1965
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.20.2
>
>
> A few fellows have reported this issue.  I see it myself if I restart the cluster.   You'll see:
> {code}
> ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /hbase/safe-mode
> {code}
> ... over and over again in master log.

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


[jira] Commented: (HBASE-1965) On restart of branch, master complains about not being able to set safe mode

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775436#action_12775436 ] 

Andrew Purtell commented on HBASE-1965:
---------------------------------------

+1 

seems reasonable

> On restart of branch, master complains about not being able to set safe mode
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-1965
>                 URL: https://issues.apache.org/jira/browse/HBASE-1965
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>
> A few fellows have reported this issue.  I see it myself if I restart the cluster.   You'll see:
> {code}
> ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /hbase/safe-mode
> {code}
> ... over and over again in master log.

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