You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Haibo Chen (JIRA)" <ji...@apache.org> on 2018/05/18 21:44:00 UTC

[jira] [Created] (YARN-8325) Miscellaneous QueueManager code clean up

Haibo Chen created YARN-8325:
--------------------------------

             Summary: Miscellaneous QueueManager code clean up
                 Key: YARN-8325
                 URL: https://issues.apache.org/jira/browse/YARN-8325
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: fairscheduler
            Reporter: Haibo Chen


getLeafQueue(String name, boolean create, boolean recomputeSteadyShares) and

getLeafQueue(String name,  boolean create,  boolean recomputeSteadyShares),  setChildResourceLimits() can be declared as private.

 ensureRootPrefix() should be static.

The static LOG field should be private.

The log in

      if (!parent.getPolicy().isChildPolicyAllowed(childPolicy)) {
        LOG.error("Can't create queue '" + queueName + "'.");
        return null;
      }

can be improved by the specific reason, ie. the child scheduling policy is not allowed by that of its parent.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org