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;
|
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.ApplicationMasterServiceContext;
|
||||||
import org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor;
|
import org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor;
|
||||||
import org.apache.hadoop.yarn.ams.ApplicationMasterServiceUtils;
|
import org.apache.hadoop.yarn.ams.ApplicationMasterServiceUtils;
|
||||||
|
@ -329,7 +330,7 @@ public class PlacementConstraintProcessor extends AbstractPlacementProcessor {
|
||||||
if (!isAdded) {
|
if (!isAdded) {
|
||||||
BatchedRequests br = new BatchedRequests(iteratorType,
|
BatchedRequests br = new BatchedRequests(iteratorType,
|
||||||
schedulerResponse.getApplicationId(),
|
schedulerResponse.getApplicationId(),
|
||||||
Collections.singleton(schedulerResponse.getSchedulingRequest()),
|
Lists.newArrayList(schedulerResponse.getSchedulingRequest()),
|
||||||
placementAttempt + 1);
|
placementAttempt + 1);
|
||||||
reqsToRetry.add(br);
|
reqsToRetry.add(br);
|
||||||
br.addToBlacklist(
|
br.addToBlacklist(
|
||||||
|
|
Loading…
Reference in New Issue