hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [2/2] hadoop git commit: HDFS-11374. Skip FSync in CreateEditsLog to speed up edit log generation. Contributed by Hanisha Koneru.
Date Fri, 27 Jan 2017 00:25:27 GMT
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/17d4ba26
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/17d4ba26
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/17d4ba26

Branch: refs/heads/branch-2
Commit: 17d4ba26fc6a53e33558440015ce758a987288f0
Parents: 67d2875
Author: Arpit Agarwal <arp@apache.org>
Authored: Thu Jan 26 16:21:25 2017 -0800
Committer: Arpit Agarwal <arp@apache.org>
Committed: Thu Jan 26 16:21:38 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/17d4ba26/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 aecabfd..544d433 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message