reverting r1459593. HDFS-4584.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1460795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c2c6e4247
commit
98fcb9eb89
|
@ -106,9 +106,6 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
HDFS-4609. TestAuditLogs should release log handles between tests.
|
HDFS-4609. TestAuditLogs should release log handles between tests.
|
||||||
(Ivan Mitic via szetszwo)
|
(Ivan Mitic via szetszwo)
|
||||||
|
|
||||||
HDFS-4584. Skip TestNNWithQJM.testNewNamenodeTakesOverWriter() on Windows.
|
|
||||||
(Arpit Agarwal via szetszwo)
|
|
||||||
|
|
||||||
Release 2.0.4-alpha - UNRELEASED
|
Release 2.0.4-alpha - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
package org.apache.hadoop.hdfs.qjournal;
|
package org.apache.hadoop.hdfs.qjournal;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.junit.Assume.*;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -44,7 +43,7 @@ import org.junit.Test;
|
||||||
|
|
||||||
public class TestNNWithQJM {
|
public class TestNNWithQJM {
|
||||||
Configuration conf = new HdfsConfiguration();
|
Configuration conf = new HdfsConfiguration();
|
||||||
private MiniJournalCluster mjc = null;
|
private MiniJournalCluster mjc;
|
||||||
private Path TEST_PATH = new Path("/test-dir");
|
private Path TEST_PATH = new Path("/test-dir");
|
||||||
private Path TEST_PATH_2 = new Path("/test-dir");
|
private Path TEST_PATH_2 = new Path("/test-dir");
|
||||||
|
|
||||||
|
@ -62,11 +61,10 @@ public class TestNNWithQJM {
|
||||||
public void stopJNs() throws Exception {
|
public void stopJNs() throws Exception {
|
||||||
if (mjc != null) {
|
if (mjc != null) {
|
||||||
mjc.shutdown();
|
mjc.shutdown();
|
||||||
mjc = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 30000)
|
@Test
|
||||||
public void testLogAndRestart() throws IOException {
|
public void testLogAndRestart() throws IOException {
|
||||||
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
||||||
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
||||||
|
@ -96,11 +94,8 @@ public class TestNNWithQJM {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 30000)
|
@Test
|
||||||
public void testNewNamenodeTakesOverWriter() throws Exception {
|
public void testNewNamenodeTakesOverWriter() throws Exception {
|
||||||
// Skip the test on Windows. See HDFS-4584.
|
|
||||||
assumeTrue(!Path.WINDOWS);
|
|
||||||
|
|
||||||
File nn1Dir = new File(
|
File nn1Dir = new File(
|
||||||
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image-nn1");
|
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image-nn1");
|
||||||
File nn2Dir = new File(
|
File nn2Dir = new File(
|
||||||
|
@ -159,7 +154,7 @@ public class TestNNWithQJM {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 30000)
|
@Test
|
||||||
public void testMismatchedNNIsRejected() throws Exception {
|
public void testMismatchedNNIsRejected() throws Exception {
|
||||||
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
||||||
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
||||||
|
@ -194,7 +189,7 @@ public class TestNNWithQJM {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 30000)
|
@Test
|
||||||
public void testWebPageHasQjmInfo() throws Exception {
|
public void testWebPageHasQjmInfo() throws Exception {
|
||||||
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
conf.set(DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY,
|
||||||
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
MiniDFSCluster.getBaseDirectory() + "/TestNNWithQJM/image");
|
||||||
|
|
Loading…
Reference in New Issue