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/trunk@1424998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-12-21 16:20:12 +00:00
parent 5014a4b133
commit a276f68b92
2 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,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
INCOMPATIBLE CHANGES

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);
}