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:
parent
5014a4b133
commit
a276f68b92
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue