Github user tumativ commented on the issue: https://github.com/apache/zookeeper/pull/689 @lvfangmin - Regarding adding a break in addDeadWatcher.We basically do not interrupt the caller thread of addWatcher during the shutdown. So the caller thread will not be interrupted during the shutdown. -The caller thread of addWatcher can be interrupted out side of the shutdown. Do you recommend break and adding watcher even it reaches max pending watchers or return without adding watcher?
---