From 465ba7fe316a0da4f07cfe83e54793fa435a3c8e Mon Sep 17 00:00:00 2001 From: cnauroth Date: Sat, 20 Sep 2014 21:01:13 -0700 Subject: [PATCH] HDFS-7109. TestDataStorage does not release file locks between tests. Contributed by Chris Nauroth. (cherry picked from commit 0795fe3721cf86ed89d5e9058c977a1113247d08) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/datanode/TestDataStorage.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5d25d0dbe2f..a2ffc594dd5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -569,6 +569,9 @@ Release 2.6.0 - UNRELEASED HDFS-7107. Avoid Findbugs warning for synchronization on AbstractNNFailoverProxyProvider#fallbackToSimpleAuth. (cnauroth) + HDFS-7109. TestDataStorage does not release file locks between tests. + (cnauroth) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java index 1d700e3cdfc..ed322437da9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java @@ -63,6 +63,7 @@ public class TestDataStorage { @After public void tearDown() throws IOException { + storage.unlockAll(); FileUtil.fullyDelete(TEST_DIR); }