Github user enixon commented on the issue:
https://github.com/apache/zookeeper/pull/561
Rolling back the unnecessary changes :)
The failing test was
DisconnectedWatcherTest::testManyChildWatchersAutoReset. It is unrelated to my
change and will not repro locally. Retrying with next commit.---
