YARN-10520. Deprecated the residual nested class for the LCEResourceHandler (#2527). Contributed by Wanqiang Ji

This commit is contained in:
adamantal 2020-12-09 12:44:13 +01:00
parent d67ccd03e3
commit 0a45bd034e
2 changed files with 3 additions and 0 deletions

View File

@ -725,6 +725,7 @@ public void testGetLocalResources() throws Exception {
verify(lce, times(1)).getLocalResources(container); verify(lce, times(1)).getLocalResources(container);
} }
@Deprecated
private static class TestResourceHandler implements LCEResourcesHandler { private static class TestResourceHandler implements LCEResourcesHandler {
static Set<ContainerId> postExecContainers = new HashSet<ContainerId>(); static Set<ContainerId> postExecContainers = new HashSet<ContainerId>();

View File

@ -126,12 +126,14 @@ public void run() {
FileUtils.deleteQuietly(cgroupDir); FileUtils.deleteQuietly(cgroupDir);
} }
@Deprecated
static class MockLinuxContainerExecutor extends LinuxContainerExecutor { static class MockLinuxContainerExecutor extends LinuxContainerExecutor {
@Override @Override
public void mountCgroups(List<String> x, String y) { public void mountCgroups(List<String> x, String y) {
} }
} }
@Deprecated
static class CustomCgroupsLCEResourceHandler extends static class CustomCgroupsLCEResourceHandler extends
CgroupsLCEResourcesHandler { CgroupsLCEResourcesHandler {