This patch is related to bug reports 1956937 and 1941629.
There is a race condition in the ZooKeeper constructor. In the current version, the constructor creates ClientCnxn before it sets the watcher attribute, which causes a NullPoiterException to be thrown. This patch just inverts the order of instantiating ClientCnxn and assigning a value to the watcher attribute.
Log in to post a comment.