YARN-283. Fair scheduler fails to get queue info without root prefix. (sandyr via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1424999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-12-21 16:22:41 +00:00
parent b57c64f93f
commit 74d9349962
2 changed files with 6 additions and 0 deletions

View File

@ -135,6 +135,9 @@ Release 2.0.3-alpha - Unreleased
YARN-282. Fair scheduler web UI double counts Apps Submitted.
(sandyr via tucu)
YARN-283. Fair scheduler fails to get queue info without root prefix.
(sandyr via tucu)
Release 2.0.2-alpha - 2012-09-07
YARN-9. Rename YARN_HOME to HADOOP_YARN_HOME. (vinodkv via acmurthy)

View File

@ -227,6 +227,9 @@ public class QueueManager {
* Return whether a queue exists already.
*/
public boolean exists(String name) {
if (!name.startsWith(ROOT_QUEUE + ".") && !name.equals(ROOT_QUEUE)) {
name = ROOT_QUEUE + "." + name;
}
synchronized (queues) {
return queues.containsKey(name);
}