public void maybeThrowAuthFailure(Node node) {
        lock.lock();
        try {
            NetworkClientUtils.maybeThrowAuthFailure(client, node);
        } finally {
            lock.unlock();
        }
    }
Check for an authentication error on a given node and raise the exception if there is one.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkClient.java