accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Medinets (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-635) Check Existence of Zookeeper Recovery Node Before Reading It.
Date Wed, 13 Jun 2012 21:51:43 GMT

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

David Medinets commented on ACCUMULO-635:
-----------------------------------------

This is the original code:

{code}
  ZooReaderWriter.getInstance().getChildren(zroot + Constants.ZRECOVERY, new Watcher() {
    @Override
    public void process(WatchedEvent event) {
      nextEvent.event("Noticed recovery changes", event.getType());
    }
  });
{code}
                
> Check Existence of Zookeeper Recovery Node Before Reading It.
> -------------------------------------------------------------
>
>                 Key: ACCUMULO-635
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-635
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: David Medinets
>            Assignee: David Medinets
>            Priority: Minor
>
> I don't know why but my errors have started to display the following message. I tracked
down the source. Basically the Zookeeper node is being read without first making sure that
it exists.
> {code}
> org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode
>  = NoNode for /accumulo/b519799c-3a51-4c9b-af21-96d577e2c11f/recovery
>         at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
>         at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
>         at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1448)
>         at org.apache.accumulo.core.zookeeper.ZooReader.getChildren(ZooReader.java:62)
>         at org.apache.accumulo.server.master.Master.run(Master.java:2071)
>         at org.apache.accumulo.server.master.Master.main(Master.java:2173)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message