private static void checkQueueLabelInLabelManager(String labelExpression, RMContext rmContext) throws InvalidLabelResourceRequestException { // check node label manager contains this label if (null != rmContext) { RMNodeLabelsManager nlm = rmContext.getNodeLabelManager(); if (nlm != null && !nlm.containsNodeLabel(labelExpression)) { throw new InvalidLabelResourceRequestException( "Invalid label resource request, cluster do not contain " + ", label= " + labelExpression); } } }
throw new InvalidLabelResourceRequestException( "Invalid resource request, queue=" + queueInfo.getQueueName() + " specified node label expression in a " throw new InvalidLabelResourceRequestException( "Invalid resource request, queue=" + queueInfo.getQueueName() + " specified more than one node label " if (!checkQueueLabelExpression(queueInfo.getAccessibleNodeLabels(), labelExp, rmContext)) { throw new InvalidLabelResourceRequestException( "Invalid resource request" + ", queue=" + queueInfo.getQueueName() + " doesn't have permission to access all labels "
LOG.warn(message); if (!isRecovery) { throw new InvalidLabelResourceRequestException( "Invalid resource request, node label not enabled " + "but request contains label expression");