facebook / facebook/rocksdb

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

Open
#10,595 0 comments 0 reactions 0 assignees View on GitHub
question up-for-grabs
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

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 version`5.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 !**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.