We have a java process which uses leveldb for writing the key value pairs to disk and reads those key value pairs on condition basis. We have integrated leveldb with our java application using leveldb-jni-all.jar. Currently we are using leveldb version 1.20 and leveldbjni version 1.8.1 in our application .
OS : RHEL 7.4
File System : xfs
We are frequently facing the below exception and unable to find the root cause . Can you please help us analyze the root cause of the issue ?
Corruption: not an sstable (bad magic number)
org.iq80.leveldb.DBException: Corruption: not an sstable (bad magic number)
at org.fusesource.leveldbjni.internal.JniDB.write(JniDB.java:160)
at org.fusesource.leveldbjni.internal.JniDB.write(JniDB.java:121)
.
.
.
Caused by: org.fusesource.leveldbjni.internal.NativeDB$DBException: Corruption: not an sstable (bad magic number)
at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:202)
at org.fusesource.leveldbjni.internal.NativeDB.write(NativeDB.java:287)
at org.fusesource.leveldbjni.internal.JniDB.write(JniDB.java:157)
... 8 more
Regards,
Arshiya
question from:
https://stackoverflow.com/questions/65559597/corruption-not-an-sstable-bad-magic-number-error-in-leveldb-version-1-20 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…