rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

ldb tool : assertion failed for reading a Rockdb database whatever the underlying version.

Open ytrezq opened this issue 2 years ago • 0 comments

I created a 1Tib database using https://github.com/openethereum/openethereum powered by Rocksdb 5.14.3. The database is perfectly readable through the intended software.

However when I try to read it using the latest version of Rocksdb or the version5.14.3 :

sh-5.1# ldb --db=/mnt/openethereum/xdai/db/3c648cbdc4c9333d/archive/db dump
ldb: /builddir/build/BUILD/storage/rocksdb/rocksdb/tools/ldb_cmd.cc:1636: virtual void rocksdb::DBDumperCommand::DoCommand(): Assertion `!path_.empty()' failed.
Abandon (core dumped)
sh-5.1#

I can try to pass --try_load_options but then it considers the database to be empty whatever the —column_family= argument given :

sh-5.1# ldb --db=/mnt/openethereum/xdai/db/3c648cbdc4c9333d/archive/db dump --try_load_options
Keys in range: 0

sh-5.1#

Please note this is the same programs but a different problem and the database is for Gnosis while it is for Ethereum in #8081. Even if upgrading is Ok, more recent ldb should be open the database. But none version of the tools can read it whereas this is possible in #8081.

Not a duplicate !

ytrezq avatar Aug 28 '22 11:08 ytrezq