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

This commit is contained in:
Arun Suresh 2018-02-17 03:24:55 -08:00
parent 31db977cb3
commit a1e56a6286

View File

@ -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 @@ private void addToRetryList(SchedulingResponse schedulerResponse,
if (!isAdded) {
BatchedRequests br = new BatchedRequests(iteratorType,
schedulerResponse.getApplicationId(),
Collections.singleton(schedulerResponse.getSchedulingRequest()),
Lists.newArrayList(schedulerResponse.getSchedulingRequest()),
placementAttempt + 1);
reqsToRetry.add(br);
br.addToBlacklist(