YARN-1184. ClassCastException during preemption enforcement.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1523864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christopher Douglas 2013-09-17 01:31:18 +00:00
parent 3828687def
commit 629cd3b57e
2 changed files with 7 additions and 2 deletions

View File

@ -199,6 +199,8 @@ Release 2.1.1-beta - UNRELEASED
YARN-540. Race condition causing RM to potentially relaunch already YARN-540. Race condition causing RM to potentially relaunch already
unregistered AMs on RM restart (Jian He via bikas) unregistered AMs on RM restart (Jian He via bikas)
YARN-1184. ClassCastException during preemption enforcement. (cdouglas)
Release 2.1.0-beta - 2013-08-22 Release 2.1.0-beta - 2013-08-22
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -1609,9 +1609,12 @@ public class LeafQueue implements CSQueue {
} }
// need to access the list of apps from the preemption monitor /**
* Obtain (read-only) collection of active applications.
*/
public Set<FiCaSchedulerApp> getApplications() { public Set<FiCaSchedulerApp> getApplications() {
return Collections.unmodifiableSet(activeApplications); // need to access the list of apps from the preemption monitor
return activeApplications;
} }
// return a single Resource capturing the overal amount of pending resources // return a single Resource capturing the overal amount of pending resources