HDFS-11374. Skip FSync in CreateEditsLog to speed up edit log generation. Contributed by Hanisha Koneru.
This commit is contained in:
parent
55c9f6d747
commit
7bc333ad41
@ -200,8 +200,8 @@ public static void main(String[] args) throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user