From 3c2397cb041068172c8ad209996414d7371d2eca Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Tue, 9 Jun 2015 12:15:38 -0700 Subject: [PATCH] HDFS-8568. TestClusterId#testFormatWithEmptyClusterIdOption is failing. Contributed by Rakesh R. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/namenode/TestClusterId.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5147e38bdc0..fad2707bc67 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -615,6 +615,9 @@ Release 2.8.0 - UNRELEASED HDFS-8552. Fix hdfs CLI usage message for namenode and zkfc. (Brahma Reddy Battula via xyao) + HDFS-8568. TestClusterId#testFormatWithEmptyClusterIdOption is failing. + (Rakesh R. via xyao) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestClusterId.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestClusterId.java index 7c23dd55df5..28ecd10b64a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestClusterId.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestClusterId.java @@ -236,7 +236,7 @@ public class TestClusterId { NameNode.createNameNode(argv, config); // Check if usage is printed - assertTrue(baos.toString("UTF-8").contains("Usage: java NameNode")); + assertTrue(baos.toString("UTF-8").contains("Usage: hdfs namenode")); System.setErr(origErr); // check if the version file does not exists. @@ -262,7 +262,7 @@ public class TestClusterId { NameNode.createNameNode(argv, config); // Check if usage is printed - assertTrue(baos.toString("UTF-8").contains("Usage: java NameNode")); + assertTrue(baos.toString("UTF-8").contains("Usage: hdfs namenode")); System.setErr(origErr); // check if the version file does not exists. @@ -289,7 +289,7 @@ public class TestClusterId { NameNode.createNameNode(argv, config); // Check if usage is printed - assertTrue(baos.toString("UTF-8").contains("Usage: java NameNode")); + assertTrue(baos.toString("UTF-8").contains("Usage: hdfs namenode")); System.setErr(origErr); // check if the version file does not exists.