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:
parent
b57c64f93f
commit
74d9349962
|
@ -135,6 +135,9 @@ Release 2.0.3-alpha - Unreleased
|
||||||
YARN-282. Fair scheduler web UI double counts Apps Submitted.
|
YARN-282. Fair scheduler web UI double counts Apps Submitted.
|
||||||
(sandyr via tucu)
|
(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
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
YARN-9. Rename YARN_HOME to HADOOP_YARN_HOME. (vinodkv via acmurthy)
|
YARN-9. Rename YARN_HOME to HADOOP_YARN_HOME. (vinodkv via acmurthy)
|
||||||
|
|
|
@ -227,6 +227,9 @@ public class QueueManager {
|
||||||
* Return whether a queue exists already.
|
* Return whether a queue exists already.
|
||||||
*/
|
*/
|
||||||
public boolean exists(String name) {
|
public boolean exists(String name) {
|
||||||
|
if (!name.startsWith(ROOT_QUEUE + ".") && !name.equals(ROOT_QUEUE)) {
|
||||||
|
name = ROOT_QUEUE + "." + name;
|
||||||
|
}
|
||||||
synchronized (queues) {
|
synchronized (queues) {
|
||||||
return queues.containsKey(name);
|
return queues.containsKey(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue