HDFS-12845. JournalNode Test failures. Contributed by Bharat Viswanadham.

This commit is contained in:
Arpit Agarwal 2017-12-19 14:12:25 -08:00
parent f92ea68367
commit d85576aefd
1 changed files with 4 additions and 0 deletions

View File

@ -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);