I noticed that the first node started never adds the event handler to the znode. So, if the znode is deleted the first lock holder will never see that event which could lead two 2 clients holding the lock- one holding it and another thinking it holds it.
I noticed that the first node started never adds the event handler to the znode. So, if the znode is deleted the first lock holder will never see that event which could lead two 2 clients holding the lock- one holding it and another thinking it holds it.