Skip to content

Conversation

wision
Copy link

@wision wision commented Jan 27, 2015

node-zookeeper-client is already handling disconnects and to everyone else, it appears either connected or connecting (alexguan/node-zookeeper-client#15 (comment)), so there's no need to handle it in the watcher.. this doesn't apply on states: closing, expire, auth_failed

the problem is that we are experiencing increasing number of connections when restarting zookeeper where client reconnects after 2-3seconds, and then watcher creates new connection after 20secs

can you please review this?

@hemanth
Copy link
Member

hemanth commented Jan 27, 2015

@wision Could you please add a description? (Agree the title explains, but also...)

@wision
Copy link
Author

wision commented Jan 27, 2015

@hemanth done

@hemanth
Copy link
Member

hemanth commented Jan 28, 2015

👍

hemanth added a commit that referenced this pull request Jan 28, 2015
Don't create new zk client on states: closing, expire, auth_failed.
@hemanth hemanth merged commit 9061332 into node-modules:master Jan 28, 2015
@hemanth
Copy link
Member

hemanth commented Jan 28, 2015

@fengmk2 npm version minor ?

@wision wision deleted the fix branch January 28, 2015 07:52
@fengmk2 fengmk2 added the bug label Jan 29, 2015
@fengmk2
Copy link
Member

fengmk2 commented Jan 29, 2015

release patch version 1.0.1

@fengmk2
Copy link
Member

fengmk2 commented Jan 29, 2015

@wision also add you @node-modules/dev team

@hemanth
Copy link
Member

hemanth commented Jan 29, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants