public static DBOptions getRocksDBOptions(final String groupId, final Class<?> cls) {
        Requires.requireNonNull(cls, "cls");
        String key = buildKey(groupId, cls);
        DBOptions opts = rocksDBOptionsTable.get(key);
        if (opts == null) {
            final DBOptions newOpts = getDefaultRocksDBOptions();
            opts = rocksDBOptionsTable.putIfAbsent(key, newOpts);
            if (opts == null) {
                opts = newOpts;
            } else {
                newOpts.close();
            }
        }
        // NOTE: This does a shallow copy, which means env, rate_limiter,
        // sst_file_manager, info_log and other pointers will be cloned!
        return new DBOptions(checkInvalid(opts));
    }
Get a new default DBOptions or a copy of the exist DBOptions.
Users should call DBOptions#close() to release resources themselves.

@param  groupId raft group id
@param cls the key of DBOptions
@return new default DBOptions or a copy of the exist DBOptions
jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java