dubbox icon indicating copy to clipboard operation
dubbox copied to clipboard

修改curator客户端,解决zookeeper宕机重启CuratorWatcherImpl中的process方法异常的问题

Open YanXs opened this issue 9 years ago • 0 comments

使用curator做zookeeper客户端时,当zookeeper宕机重启后,curator客户端重连后会产生一个None类型的WatchEvent,调用process方法会抛异常。虽然异常会被捕捉并记录到日志中,并不会像1.x.x版本出现无法重连的问题,但是这里其实可以加上event类型限制,只对NodeChildrenChanged事件调用后面的方法。

YanXs avatar Oct 26 '16 15:10 YanXs