Browse Source

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

adamantal 4 years ago
parent
commit
0a45bd034e

+ 1 - 0
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLinuxContainerExecutor.java

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

+ 2 - 0
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/util/TestCgroupsLCEResourcesHandler.java

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