twmht / python-rocksdb

Python bindings for RocksDB
BSD 3-Clause "New" or "Revised" License
274 stars 89 forks source link

rocksdb.errors.Corruption: b'Corruption: Unknown Footer version. Maybe this file was created with newer version of RocksDB?' #105

Open doliynyk-nference opened 1 year ago

doliynyk-nference commented 1 year ago

This is now the third time I have run into this error. Previously I was not able to find a fix and simply changed my storage mechanism from rocksdb but in this case I am no longer able to.

Steps to Reproduce

  1. Create a rocksdb database using python-rocksdb 0.7.0 (installed through poetry if that matters)
  2. SCP the database onto a different machine with a different venv that also contains rocksdb 0.7.0
  3. Open the database on the second machine and attempt to use it (for example, create an iterator on it and attempt to read an item)
  4. Get the error rocksdb.errors.Corruption: b'Corruption: Unknown Footer version. Maybe this file was created with newer version of RocksDB?'

Things I Tried

I am assuming that the internal version of the actual rocksdb the python bindings are for is somehow different between the two machines. Is it possible to see what version of rocksdb the python binding is using? Has anyone encountered this error and found a fix?