From d85576aefd23cbf300c22146403296de7b6fe3e2 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Tue, 19 Dec 2017 14:12:25 -0800 Subject: [PATCH] HDFS-12845. JournalNode Test failures. Contributed by Bharat Viswanadham. --- .../apache/hadoop/hdfs/qjournal/server/TestJournalNode.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java index 5bf69f0c8a6..b7482f19bb6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java @@ -100,12 +100,16 @@ public class TestJournalNode { "qjournal://jn0:9900;jn1:9901"); } else if (testName.getMethodName().equals( "testJournalNodeSyncerNotStartWhenSyncEnabledIncorrectURI")) { + conf.setBoolean(DFSConfigKeys.DFS_JOURNALNODE_ENABLE_SYNC_KEY, + true); conf.set(DFSConfigKeys.DFS_NAMENODE_SHARED_EDITS_DIR_KEY, "qjournal://journal0\\:9900;journal1:9901"); } else if (testName.getMethodName().equals( "testJournalNodeSyncerNotStartWhenSyncEnabled")) { conf.set(DFSConfigKeys.DFS_NAMENODE_SHARED_EDITS_DIR_KEY, "qjournal://jn0:9900;jn1:9901"); + conf.setBoolean(DFSConfigKeys.DFS_JOURNALNODE_ENABLE_SYNC_KEY, + true); } jn = new JournalNode(); jn.setConf(conf);