The AUTH_FAILED state in the ZooKeeper class never seems to be assigned to in the code. So the ZooKeeper client can never enter this state. Instead it looks like authentication errors are indicated by AuthFailedException (with code AUTHFAILED).
Is this right? Either the AUTH_FAILED state should be removed, or an AuthFailedException should cause the ZooKeeper client to transition to the AUTH_FAILED state. Thanks, Tom