YARN-7044. TestContainerAllocation#testAMContainerAllocationWhenDNSUnavailable fails.

(cherry picked from commit 2df1b2ac05)
This commit is contained in:
Akira Ajisaka 2017-10-05 06:07:32 +09:00
parent 3ecbfff937
commit 5508b9b7c8
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,7 @@ import org.apache.hadoop.security.SecurityUtilTestHelper;
import org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse;
import org.apache.hadoop.yarn.api.records.Container;
import org.apache.hadoop.yarn.api.records.ContainerId;
import org.apache.hadoop.yarn.api.records.ExecutionType;
import org.apache.hadoop.yarn.api.records.LogAggregationContext;
import org.apache.hadoop.yarn.api.records.NodeId;
import org.apache.hadoop.yarn.api.records.Priority;
@ -294,11 +295,12 @@ public class TestContainerAllocation {
int containerVersion, NodeId nodeId, String appSubmitter,
Resource capability, Priority priority, long createTime,
LogAggregationContext logAggregationContext, String nodeLabelExp,
ContainerType containerType) {
ContainerType containerType, ExecutionType executionType) {
numRetries++;
return super.createContainerToken(containerId, containerVersion,
nodeId, appSubmitter, capability, priority, createTime,
logAggregationContext, nodeLabelExp, containerType);
logAggregationContext, nodeLabelExp, containerType,
executionType);
}
};
}