YARN-7918. Fix TestAMRMClientPlacementConstraints. (Gergely Novák via asuresh)
This commit is contained in:
parent
31db977cb3
commit
a1e56a6286
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user