Comments (6)
Is the manifest really corrupted, or are you just hitting a compatibility issue ? I am not sure how compatible RocksDB and LevelDB formats are; you could try opening using RocksJava with the oldest RocksDB format version
public void openWithOldestFormatVersion() {
final BlockBasedTableConfig blockBasedTableConfig =
new BlockBasedTableConfig().setFormatVersion(0);
try (final Options options = new Options().setTableFormatConfig(blockBasedTableConfig);
final RocksDB ignored = RocksDB.openReadOnly(options, "<Your DB path here>")) {
} catch (RocksDBException e) {
// Access the DB
}
}
If you want to dig deeper see Docs
If the above doesn't work, you may be able to migrate your DB by opening it using LevelDB, iterating the keys and values, and writing to a new RocksDB database.
from rocksdb.
Действительно ли манифест поврежден, или у вас просто возникла проблема совместимости? Я не уверен, насколько совместимы форматы RocksDB и LevelDB; вы можете попробовать открыть с помощью RocksJava самую старую версию формата RocksDB.
public void openWithOldestFormatVersion() { final BlockBasedTableConfig blockBasedTableConfig = new BlockBasedTableConfig().setFormatVersion(0); try (final Options options = new Options().setTableFormatConfig(blockBasedTableConfig); final RocksDB ignored = RocksDB.openReadOnly(options, "<Your DB path here>")) { } catch (RocksDBException e) { // Access the DB } }
Если вы хотите копнуть глубже, см. Документы .
Если вышеперечисленное не сработает, вы можете перенести свою БД, открыв ее с помощью LevelDB, повторив ключи и значения и записав в новую базу данных RocksDB.
I think the problem is really due to LevelDB and RocksDB incompatibility, but setting it to the old database format didn't solve the problem. My LevelDB databases have been around since 2022
from rocksdb.
It was worth a try. I agree, it is probably just basic divergence/incompatibility. I guess you will need to write copy code in C++, as there isn't a Java API for LevelDB. Unless someone has a better idea, are you happy to close this ticket ?
from rocksdb.
Yeah, I'm closing the issue
from rocksdb.
@dasasd122311 There was a Java port of LevelDB (I haven't checked if the storage format is the same) - might be helpful for you - https://github.com/dain/leveldb
from rocksdb.
@dasasd122311 There was a Java port of LevelDB (I haven't checked if the storage format is the same) - might be helpful for you - https://github.com/dain/leveldb
I use its fork - https://github.com/halibobor/leveldb-java. Because the fork has been updated and has no problem reading ldb files. But the code is using org.iq80.snappy library. I got the error EXCEPTION_ACCESS_VIOLATION. I read that the owner of this library wrote that they switched to the new aircompressor library, but I don't know how I can rewrite the LevelDB library code, because some methods are used, some are removed and so on. I thought switching to RocksDB would solve my problem because it is updated frequently, but RocksDB is incompatible with my database.
from rocksdb.
Related Issues (20)
- TransactionDB->CreateColumnFamilyWithImport doesn't create valid column family handles HOT 1
- Cache dumper could exit early
- rocksdb 9.0.0 fails to build on GCC 13.2.1 with `-march=x86-64-v3`
- Cache Dump all keys without filter
- checkpoint directory is empty when db is empty HOT 2
- [Java] In read-only mode can't get data from blob only if there is just one checkpoint with one entry HOT 14
- Solution to the periodic slowdown of GetUpdatesSnce
- Heading typo on wiki docs: PlainTable Format HOT 1
- does rocksdb provide any monitoring metrics? HOT 1
- Java release for 9.1 HOT 2
- segFault while write large data on multiple thread HOT 3
- Feature request: rate limit compaction triggered by periodic compaction seconds/ ttl only HOT 5
- The value of 'micros/op' is not equal to 1,000,000 divided by the value of 'ops/sec' HOT 4
- Question about CompactRange behavior with option atomic_flush=true
- Segfault During compaction using FIFO Compaction style for a single CF
- Safer shutdown behaviour by deafult HOT 2
- StdLogger truncating last letter in some cases HOT 3
- High Memory Usage/ LRU cache size is not being respected HOT 33
- rocksdb abnormal exit
- Feature request: log to stderr logger + LOG file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocksdb.