dain / leveldb

Port of LevelDB to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LevelDB Corruption Issue

surein opened this issue · comments

Facing LevelDB Corruption issues with the below errors intermittently. We are using 0.7 version of leveldb

  1. Caused by: java.io.FileNotFoundException: ./leveldb/mapdbcache/117067.sst (No such file or directory)
  2. LevelDB corruption java.lang.RuntimeException: Could not open table 20021

Caused by: java.io.FileNotFoundException: friendxdb/offlinechatmsg_9/000516.sst (No such file or directory)

Who can help me ?

I haven't done much worked on this project in several years, so I can't offer much help other than the obvious Does that directory and file exist?. If the directory and file exist, there is some configuration issue. If the directory exists and the file is missing, I'm not sure what the issue is. I'd use a debugger to see why it is looking for that file.

@dain
The merged thread deletes the file. This operation is executed along with the read thread. The read thread does not know that the file has been deleted in a short time. Capture this exception and try to read it again. After 1- n times, it will go to the correct one File read data
I use Google Translate, I don't know if you can understand what I said.