From a9176a64a1342c271330c58ecc1d7172128b093d Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Fri, 24 May 2013 15:44:33 +0000 Subject: [PATCH] HDFS-4693. Merge r1468457 from trunk. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1486098 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/namenode/TestCheckpoint.java | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d8dd09fc876..be6fac5bf94 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -273,6 +273,9 @@ Release 2.0.5-beta - UNRELEASED HDFS-4824. FileInputStreamCache.close leaves dangling reference to FileInputStreamCache.cacheCleaner. (Colin Patrick McCabe via todd) + HDFS-4693. Some test cases in TestCheckpoint do not clean up after + themselves. (Arpit Agarwal, suresh via suresh) + BREAKDOWN OF HDFS-347 SUBTASKS AND RELATED JIRAS HDFS-4353. Encapsulate connections to peers in Peer and PeerServer classes. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java index 7cbfbc5db02..8425b6ac768 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java @@ -1550,9 +1550,10 @@ public class TestCheckpoint { if (fs != null) { fs.close(); } - if (cluster != null) { - cluster.shutdown(); - } + cleanup(secondary); + secondary = null; + cleanup(cluster); + cluster = null; Mockito.reset(faultInjector); } }