HDFS-12959. Fix TestOpenFilesWithSnapshot redundant configurations.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/76e664e9 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/76e664e9 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/76e664e9 Branch: refs/heads/YARN-6592 Commit: 76e664e931bf0784620b69bc588bd51cf2a024e6 Parents: 826507c Author: Manoj Govindassamy <manoj...@apache.org> Authored: Thu Dec 21 15:47:15 2017 -0800 Committer: Manoj Govindassamy <manoj...@apache.org> Committed: Thu Dec 21 15:47:15 2017 -0800 ---------------------------------------------------------------------- .../server/namenode/snapshot/TestOpenFilesWithSnapshot.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/76e664e9/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestOpenFilesWithSnapshot.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestOpenFilesWithSnapshot.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestOpenFilesWithSnapshot.java index be118a3..17082a1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestOpenFilesWithSnapshot.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestOpenFilesWithSnapshot.java @@ -66,7 +66,8 @@ public class TestOpenFilesWithSnapshot { public void setup() throws IOException { conf.setBoolean( DFSConfigKeys.DFS_NAMENODE_SNAPSHOT_CAPTURE_OPENFILES, true); - cluster = new MiniDFSCluster.Builder(conf).numDataNodes(3).build(); + cluster = + new MiniDFSCluster.Builder(conf).numDataNodes(REPLICATION).build(); conf.set("dfs.blocksize", "1048576"); fs = cluster.getFileSystem(); } @@ -252,8 +253,6 @@ public class TestOpenFilesWithSnapshot { */ @Test (timeout = 120000) public void testPointInTimeSnapshotCopiesForOpenFiles() throws Exception { - conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_SNAPSHOT_CAPTURE_OPENFILES, - true); // Construct the directory tree final Path level0A = new Path("/level_0_A"); final Path level0B = new Path("/level_0_B"); @@ -738,8 +737,6 @@ public class TestOpenFilesWithSnapshot { */ @Test (timeout = 120000) public void testOpenFilesSnapChecksumWithTrunkAndAppend() throws Exception { - conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_SNAPSHOT_CAPTURE_OPENFILES, - true); // Construct the directory tree final Path dir = new Path("/A/B/C"); fs.mkdirs(dir); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org