diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java index 41ab6f9e1..f137a30de 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java @@ -253,6 +253,9 @@ public static ColumnFamilyOptions getDefaultRocksDBColumnFamilyOptions() { .optimizeLevelStyleCompaction(); } + // https://github.com/facebook/rocksdb/pull/5744 + opts.setForceConsistencyChecks(true); + return opts; }