diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index a22dba0d5b8..b7cd3e61826 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -215,6 +215,9 @@ Release 2.0.1-alpha - UNRELEASED HDFS-3480. Multiple SLF4J binding warning. (Vinay via eli) + HDFS-3524. Update TestFileLengthOnClusterRestart for HDFS-3522. (Brandon + Li via szetszwo) + BREAKDOWN OF HDFS-3042 SUBTASKS HDFS-2185. HDFS portion of ZK-based FailoverController (todd) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java index 5f9ad3259d4..f63ba9a53a7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java @@ -65,8 +65,8 @@ public class TestFileLengthOnClusterRestart { in = (HdfsDataInputStream) dfs.open(path); Assert.fail("Expected IOException"); } catch (IOException e) { - Assert.assertEquals("Could not obtain the last block locations.", e - .getLocalizedMessage()); + Assert.assertTrue(e.getLocalizedMessage().indexOf( + "Name node is in safe mode") >= 0); } } finally { if (null != in) {