From 8c643e3bf9e0a70229aee79fb5244a19b32fef00 Mon Sep 17 00:00:00 2001 From: Devaraj K Date: Mon, 8 Jun 2015 15:32:13 +0530 Subject: [PATCH] YARN-3747. TestLocalDirsHandlerService should delete the created test directory logDir2. Contributed by David Moore. (cherry picked from commit 126321eded7dc38c1eef2cfde9365404c924a5cb) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../yarn/server/nodemanager/TestLocalDirsHandlerService.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index e0272b523d2..05cab3d3848 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -456,6 +456,9 @@ Release 2.8.0 - UNRELEASED YARN-3780. Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition. (zhihai xu via devaraj) + YARN-3747. TestLocalDirsHandlerService should delete the created test directory logDir2. + (David Moore via devaraj) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLocalDirsHandlerService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLocalDirsHandlerService.java index a045e62ba90..c61d1f0944a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLocalDirsHandlerService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLocalDirsHandlerService.java @@ -144,7 +144,7 @@ public class TestLocalDirsHandlerService { FileUtils.deleteDirectory(new File(localDir1)); FileUtils.deleteDirectory(new File(localDir2)); FileUtils.deleteDirectory(new File(logDir1)); - FileUtils.deleteDirectory(new File(logDir1)); + FileUtils.deleteDirectory(new File(logDir2)); dirSvc.close(); } }