HDFS-7105. Fix TestJournalNode#testFailToStartWithBadConfig to match log output change. Contributed by Ray Chiang.

This commit is contained in:
cnauroth 2014-09-19 21:04:55 -07:00
parent b6ceef90e5
commit 332e2e23ba
2 changed files with 4 additions and 1 deletions

View File

@ -897,6 +897,9 @@ Release 2.6.0 - UNRELEASED
HDFS-7051. TestDataNodeRollingUpgrade#isBlockFileInPrevious assumes Unix file HDFS-7051. TestDataNodeRollingUpgrade#isBlockFileInPrevious assumes Unix file
path separator. (cnauroth) path separator. (cnauroth)
HDFS-7105. Fix TestJournalNode#testFailToStartWithBadConfig to match log
output change. (Ray Chiang via cnauroth)
Release 2.5.1 - 2014-09-05 Release 2.5.1 - 2014-09-05
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -287,7 +287,7 @@ public class TestJournalNode {
// Directory which cannot be created // Directory which cannot be created
conf.set(DFSConfigKeys.DFS_JOURNALNODE_EDITS_DIR_KEY, conf.set(DFSConfigKeys.DFS_JOURNALNODE_EDITS_DIR_KEY,
Shell.WINDOWS ? "\\\\cannotBeCreated" : "/proc/does-not-exist"); Shell.WINDOWS ? "\\\\cannotBeCreated" : "/proc/does-not-exist");
assertJNFailsToStart(conf, "Can not create directory"); assertJNFailsToStart(conf, "Cannot create directory");
} }
private static void assertJNFailsToStart(Configuration conf, private static void assertJNFailsToStart(Configuration conf,