Browse Source

HDFS-4254. testAllEditsDirsFailOnFlush makes subsequent test cases fail (0.23.6 only) (Kihwal Lee via daryn)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1415899 13f79535-47bb-0310-9956-ffa450edef68
Daryn Sharp 12 years ago
parent
commit
62e062248b

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

@@ -18,6 +18,9 @@ Release 0.23.6 - UNRELEASED
     of it is undefined after the iteration or modifications of the map.
     of it is undefined after the iteration or modifications of the map.
     (szetszwo via daryn)
     (szetszwo via daryn)
 
 
+    HDFS-4254. testAllEditsDirsFailOnFlush makes subsequent test cases fail
+    (0.23.6 only) (Kihwal Lee via daryn)
+
 Release 0.23.5 - UNRELEASED
 Release 0.23.5 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLogJournalFailures.java

@@ -103,6 +103,8 @@ public class TestEditLogJournalFailures {
       GenericTestUtils.assertExceptionContains(
       GenericTestUtils.assertExceptionContains(
         "Could not sync enough journals to persistent storage. " +
         "Could not sync enough journals to persistent storage. " +
         "Unsynced transactions: 1", re);
         "Unsynced transactions: 1", re);
+      cluster.getNamesystem().getFSImage().getEditLog()
+          .abortCurrentLogSegment();
     }
     }
   }
   }