public boolean isConnecting(String id) {
        NodeConnectionState state = nodeState.get(id);
        return state != null && state.state == ConnectionState.CONNECTING;
    }
Return true if a specific connection establishment is currently underway
@param id The id of the node to check
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java