Repository: hadoop
Updated Branches:
  refs/heads/HDFS-12996 0898ff42e -> 59cf75887


YARN-7918. Fix TestAMRMClientPlacementConstraints. (Gergely Novák via asuresh)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a1e56a62
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a1e56a62
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a1e56a62

Branch: refs/heads/HDFS-12996
Commit: a1e56a62863d8d494af309ec5f476c4b7e4d5ef9
Parents: 31db977
Author: Arun Suresh <asur...@apache.org>
Authored: Sat Feb 17 03:24:55 2018 -0800
Committer: Arun Suresh <asur...@apache.org>
Committed: Sat Feb 17 03:24:55 2018 -0800

----------------------------------------------------------------------
 .../constraint/processor/PlacementConstraintProcessor.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a1e56a62/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/processor/PlacementConstraintProcessor.java
----------------------------------------------------------------------
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/processor/PlacementConstraintProcessor.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/processor/PlacementConstraintProcessor.java
index f089a19..cf944a6 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/processor/PlacementConstraintProcessor.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/processor/PlacementConstraintProcessor.java
@@ -17,6 +17,7 @@
  */
 package 
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor;
 
+import com.google.common.collect.Lists;
 import org.apache.hadoop.yarn.ams.ApplicationMasterServiceContext;
 import org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor;
 import org.apache.hadoop.yarn.ams.ApplicationMasterServiceUtils;
@@ -329,7 +330,7 @@ public class PlacementConstraintProcessor extends 
AbstractPlacementProcessor {
     if (!isAdded) {
       BatchedRequests br = new BatchedRequests(iteratorType,
           schedulerResponse.getApplicationId(),
-          Collections.singleton(schedulerResponse.getSchedulingRequest()),
+          Lists.newArrayList(schedulerResponse.getSchedulingRequest()),
           placementAttempt + 1);
       reqsToRetry.add(br);
       br.addToBlacklist(


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to