Github user tumativ commented on the issue: https://github.com/apache/zookeeper/pull/689 @asfgit Thanks for reviewing. - I see that there is a gap in API contract that allowing the dead watcher even cleaner thread is not running. I hope it is the burden on GC even it is GCed. - We can interrupt the cleaner thread, but It is fine if it is waiting for minimum threshold dead watchers at the time of interrupting. The thread is marked as interrupted if it is not really waiting and the exception will be thrown any subsequent wait. I think the prediction is important at least in thread communication.
---