narendly opened a new issue #754: Improve callback function for 
MetadataStoreDirectoy
URL: https://github.com/apache/helix/issues/754
 
 
   >   @Override
   >   public synchronized void handleDataDeleted(String s) {
   >     if (_zkClient.isClosed()) {
   >       return;
   >     }
   >     // Renew subscription
   >     
_zkClient.subscribeChildChanges(MetadataStoreRoutingConstants.ROUTING_DATA_PATH,
 this);
   >     for (String child : 
_zkClient.getChildren(MetadataStoreRoutingConstants.ROUTING_DATA_PATH)) {
   >       
_zkClient.subscribeDataChanges(MetadataStoreRoutingConstants.ROUTING_DATA_PATH 
+ "/" + child,
   >           this);
   >     }
   >     _routingDataListener.refreshRoutingData(_namespace);
   >   }
   
   and this is the NoNodeException
   
   > org.apache.helix.manager.zk.zookeeper.ZkClient$6.run(ZkClient.java:1287)
   >         at 
org.apache.helix.manager.zk.zookeeper.ZkEventThread.run(ZkEventThread.java:89)
   > Caused by: org.apache.zookeeper.KeeperException$NoNodeException: 
KeeperErrorCode = NoNode for /METADATA_STORE_ROUTING_DATA
   >         at 
org.apache.zookeeper.KeeperException.create(KeeperException.java:114)
   >         at 
org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
   >         at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1541)
   >         at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1569)
   >         at 
org.apache.helix.manager.zk.zookeeper.ZkConnection.getChildren(ZkConnection.java:130)
   >         at 
   
   We should catch the NoNodeException and make it a NOP if the root path does 
not exist.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to