luruozhou commented on issue #80: Node进程会偶尔与zk集群断开连接,导致socket无可用agent
URL: https://github.com/apache/dubbo-js/issues/80#issuecomment-575992395
 
 
   > > 节点启停会造成 zk-client对 zk进行重连,如果在重连过程中对节点进行 getChildren操作,就有可能造成 connection 
loss. 此时节点的watcher就会设置不上,后续节点的children变更就拿不到了.
   > 
   > 那等待重连完成后,再去getChildren一下?
   
   对的, getChildren的回调里需要处理一下CONNECTION_LOSS,重新getChildren.

----------------------------------------------------------------
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