From e32e187448f8b3242b012024319d8d774209af3f Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Tue, 28 Nov 2017 11:04:38 -0800 Subject: [PATCH] HDFS-12864. Ozone: Turn off full synced write in RocksDB MetadataStore. Contributed by Elek, Marton. --- .../src/main/java/org/apache/hadoop/utils/RocksDBStore.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/utils/RocksDBStore.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/utils/RocksDBStore.java index aa957fab46a..c56998902d1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/utils/RocksDBStore.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/utils/RocksDBStore.java @@ -67,8 +67,6 @@ public class RocksDBStore implements MetadataStore { dbOptions = options; dbLocation = dbFile; writeOptions = new WriteOptions(); - writeOptions.setSync(true); - writeOptions.setNoSlowdown(true); try { db = RocksDB.open(dbOptions, dbLocation.getAbsolutePath());