fusesource / leveldbjni

A Java Native Interface to LevelDB
BSD 3-Clause "New" or "Revised" License
536 stars 143 forks source link

DB created in linux cannot be read in Windows #95

Closed ValleZ closed 6 years ago

ValleZ commented 6 years ago

I created ~10GB database on Debian stretch x86_64 and when I try to open it in Windows 10 x86_64 it throws Exception in thread "main" org.iq80.leveldb.DBException: Corruption: corrupted compressed block contents at org.fusesource.leveldbjni.internal.JniDB.get(JniDB.java:90) ... Caused by: org.fusesource.leveldbjni.internal.NativeDB$DBException: Corruption: corrupted compressed block contents at org.fusesource.leveldbjni.internal.NativeDB.get(NativeDB.java:316) at org.fusesource.leveldbjni.internal.NativeDB.get(NativeDB.java:300) at org.fusesource.leveldbjni.internal.NativeDB.get(NativeDB.java:293) at org.fusesource.leveldbjni.internal.JniDB.get(JniDB.java:85) ... 5 more

The very same database works just fine in the linux. Trying to repair DB on Windows produces empty DB.

ValleZ commented 6 years ago

maybe that's snappy problem