瀏覽代碼

HDFS-7109. TestDataStorage does not release file locks between tests. Contributed by Chris Nauroth.

(cherry picked from commit 0795fe3721cf86ed89d5e9058c977a1113247d08)
cnauroth 10 年之前
父節點
當前提交
465ba7fe31

+ 3 - 0
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

+ 1 - 0
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);
   }