Closed shcw closed 2 years ago
Give up rocksdb, use pebbledb.
Dragonboat use pebbledb as raft log store, so you no need use two different kv db in your project.
Give up rocksdb, use pebbledb.
Dragonboat use pebbledb as raft log store, so you no need use two different kv db in your project.
@xkeyideal because I took over an old code and upgraded it now, I want to reuse the original kv db
Please use Pebble, RocksDB is no longer supported.
If you have a dragonboat based system that already has some RocksDB data in it, Pebble is fully compatible with that.
Please use Pebble, RocksDB is no longer supported.
If you have a dragonboat based system that already has some RocksDB data in it, Pebble is fully compatible with that.
The repository still contains dozens of references to RocksDB. https://github.com/lni/dragonboat/search?q=rocksdb
@lni If I put together a PR to remove all dangling references to RocksDB, is that something you might consider merging?
If not all the code then at least the docs? https://github.com/lni/dragonboat/blob/master/docs/storage.md#rocksdb
Switch to RocksDB only involves one extra line of code, just set the LogDBFactory field of your config.NodeHostConfig to rocksdb.Factory available in the github.com/lni/dragonboat/v3/plugin/rocksdb.
Please use Pebble, RocksDB is no longer supported.
If you have a dragonboat based system that already has some RocksDB data in it, Pebble is fully compatible with that.
@lni Thank you very much :)
@lni If I put together a PR to remove all dangling references to RocksDB, is that something you might consider merging?
@kevburnsjr thanks for looking into this, yes, please send in the PR and I will be happy to merge it.
Please feel free to let me know if you need anything else from me.
Dragonboat version
v3.3.5
Expected behavior
success exec
Actual behavior
I tried to use rocksdb but failed
panic: failed to create NodeHost: mkdir : no such file or directory
Steps to reproduce the behavior
dragonboat-example/helloworld/main.go
PS: Extended Information