Skip to content

Commit 0a45bd0

Browse files
author
adamantal
committed
YARN-10520. Deprecated the residual nested class for the LCEResourceHandler (#2527). Contributed by Wanqiang Ji
1 parent d67ccd0 commit 0a45bd0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ public void testGetLocalResources() throws Exception {
725725
verify(lce, times(1)).getLocalResources(container);
726726
}
727727

728+
@Deprecated
728729
private static class TestResourceHandler implements LCEResourcesHandler {
729730
static Set<ContainerId> postExecContainers = new HashSet<ContainerId>();
730731

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@ public void run() {
126126
FileUtils.deleteQuietly(cgroupDir);
127127
}
128128

129+
@Deprecated
129130
static class MockLinuxContainerExecutor extends LinuxContainerExecutor {
130131
@Override
131132
public void mountCgroups(List<String> x, String y) {
132133
}
133134
}
134135

136+
@Deprecated
135137
static class CustomCgroupsLCEResourceHandler extends
136138
CgroupsLCEResourcesHandler {
137139

0 commit comments

Comments
 (0)