Ver código fonte

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

cnauroth 10 anos atrás
pai
commit
0795fe3721

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -908,6 +908,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);
   }