HDFS-11374. Skip FSync in CreateEditsLog to speed up edit log generation. Contributed by Hanisha Koneru.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7bc333ad Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7bc333ad Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7bc333ad Branch: refs/heads/YARN-2915 Commit: 7bc333ad4156fd2a9f946103e4e1cf917fae4c3a Parents: 55c9f6d Author: Arpit Agarwal <a...@apache.org> Authored: Thu Jan 26 16:21:25 2017 -0800 Committer: Arpit Agarwal <a...@apache.org> Committed: Thu Jan 26 16:21:25 2017 -0800 ---------------------------------------------------------------------- .../org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7bc333ad/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java index 733dd71..bdb2101 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java @@ -199,9 +199,9 @@ public class CreateEditsLog { System.exit(-1); } } - FileNameGenerator nameGenerator = new FileNameGenerator(BASE_PATH, 100); + EditLogFileOutputStream.setShouldSkipFsyncForTesting(true); FSEditLog editLog = FSImageTestUtil.createStandaloneEditLog(editsLogDir); editLog.openForWrite(NameNodeLayoutVersion.CURRENT_LAYOUT_VERSION); addFiles(editLog, numFiles, replication, numBlocksPerFile, startingBlockId, --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org