Bibin A Chundatt created YARN-3894:
--------------------------------------

             Summary: RM startup should fail for wrong CS xml NodeLabel 
capacity configuration 
                 Key: YARN-3894
                 URL: https://issues.apache.org/jira/browse/YARN-3894
             Project: Hadoop YARN
          Issue Type: Bug
          Components: capacityscheduler
            Reporter: Bibin A Chundatt
            Assignee: Bibin A Chundatt
            Priority: Critical


Currently in capacity Scheduler when capacity configuration is wrong
RM shutdown is the current behaviour, but not incase of NodeLabels capacity 
mismatch


In {{CapacityScheduler#initializeQueues}}

{code}
  private void initializeQueues(CapacitySchedulerConfiguration conf)
    throws IOException {   
    root = 
        parseQueue(this, conf, null, CapacitySchedulerConfiguration.ROOT, 
            queues, queues, noop);
    labelManager.reinitializeQueueLabels(getQueueToLabels());
    root = 
        parseQueue(this, conf, null, CapacitySchedulerConfiguration.ROOT, 
            queues, queues, noop);
    LOG.info("Initialized root queue " + root);
    initializeQueueMappings();
    setQueueAcls(authorizer, queues);
  }
{code}

{{labelManager}} is initialized from queues and calculation for Label level 
capacity mismatch happens in {{parseQueue}} . So during initialization 
{{parseQueue}} the labels will be empty . 





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to