You're right, it's never set. Please enter a JIRA assigned to 3.2 and
we'll look into it.
Tom White wrote:
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.