public void authenticationFailed(String id, long now, AuthenticationException exception) {
        NodeConnectionState nodeState = nodeState(id);
        nodeState.authenticationException = exception;
        nodeState.state = ConnectionState.AUTHENTICATION_FAILED;
        nodeState.lastConnectAttemptMs = now;
        updateReconnectBackoff(nodeState);
    }
Enter the authentication failed state for the given node.
@param id the connection identifier
@param now the current time in ms
@param exception the authentication exception
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java