public static void releaseAllOptions() {
        for (final DBOptions opts : rocksDBOptionsTable.values()) {
            if (opts != null) {
                opts.close();
            }
        }
        for (final ColumnFamilyOptions opts : columnFamilyOptionsTable.values()) {
            if (opts != null) {
                opts.close();
            }
        }
    }
Releases all storage options from the responsibility of freeing the
underlying native C++ object.

Note, that once an instance of options has been released, calling any
of its functions will lead to undefined behavior.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java