Open kk00ss opened 8 years ago
New detail - exception at reopening is org.fusesource.lmdbjni.LMDBException: MDB_INVALID: File is not an LMDB file
Sorta fixed by changing the original MAP_SIZE and the step of size increase to 1GB. My code for increasing MAP_SIZE works until it reaches 5GB and fails miserably. I cannot even open the database after that.
Could be a LMDB bug, have you tried the same in C?
I've set initial size to 4Gb, and when I attempt to reopen environment I get exception which for some reason is null, and after restart I see
Exception in thread "main" java.lang.ExceptionInInitializerError at rhinodog.Run.main.main(main.scala) Caused by: org.fusesource.lmdbjni.LMDBException: MDB_INVALID: File is not an LMDB file
and cannot reopen LMDB. I'm blocking all the read threads that are trying to access Environment.