|
@@ -189,8 +189,8 @@ public class MockResourceManagerFacade implements ApplicationClientProtocol,
|
|
|
|
|
|
private HashSet<ApplicationId> applicationMap = new HashSet<>();
|
|
private HashSet<ApplicationId> applicationMap = new HashSet<>();
|
|
private HashSet<ApplicationId> keepContainerOnUams = new HashSet<>();
|
|
private HashSet<ApplicationId> keepContainerOnUams = new HashSet<>();
|
|
- private HashMap<ApplicationAttemptId, List<ContainerId>> applicationContainerIdMap =
|
|
|
|
- new HashMap<ApplicationAttemptId, List<ContainerId>>();
|
|
|
|
|
|
+ private HashMap<ApplicationAttemptId,
|
|
|
|
+ List<ContainerId>> applicationContainerIdMap = new HashMap<>();
|
|
private AtomicInteger containerIndex = new AtomicInteger(0);
|
|
private AtomicInteger containerIndex = new AtomicInteger(0);
|
|
private Configuration conf;
|
|
private Configuration conf;
|
|
private int subClusterId;
|
|
private int subClusterId;
|
|
@@ -495,7 +495,7 @@ public class MockResourceManagerFacade implements ApplicationClientProtocol,
|
|
if (request.getApplicationSubmissionContext().getUnmanagedAM()
|
|
if (request.getApplicationSubmissionContext().getUnmanagedAM()
|
|
|| request.getApplicationSubmissionContext()
|
|
|| request.getApplicationSubmissionContext()
|
|
.getKeepContainersAcrossApplicationAttempts()) {
|
|
.getKeepContainersAcrossApplicationAttempts()) {
|
|
- keepContainerOnUams.add(appId);
|
|
|
|
|
|
+ keepContainerOnUams.add(appId);
|
|
}
|
|
}
|
|
return SubmitApplicationResponse.newInstance();
|
|
return SubmitApplicationResponse.newInstance();
|
|
}
|
|
}
|
|
@@ -921,8 +921,9 @@ public class MockResourceManagerFacade implements ApplicationClientProtocol,
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public NodesToAttributesMappingResponse mapAttributesToNodes(NodesToAttributesMappingRequest request)
|
|
|
|
- throws YarnException, IOException {
|
|
|
|
|
|
+ public NodesToAttributesMappingResponse mapAttributesToNodes(
|
|
|
|
+ NodesToAttributesMappingRequest request)
|
|
|
|
+ throws YarnException, IOException {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|