SnappyDB
SnappyDB copied to clipboard
How to close previosly opened database
Due to an exception the database was not closed. I get following exception when opening a database.
com.snappydb.SnappydbException: Your database is still open, please close it before
is there any way to close it?
show your code where you open DB.
I use generic implementation such as:
DB snappydb = DBFactory.open(context);
// the app crashes here
snappydb.close() // never performed due to crash
let's say the app crashed while the DB was still opened and not properly closed. Since then the DB file is in inconsistent stage and cannot be accessed or closed.
Probably similar to previous issue: https://github.com/nhachicha/SnappyDB/issues/64
No reaction on this critical issue upsets... Can SnappyDB be considered as production having such flaw? I've just hit something similar on instrumental testing. Trying to guess why it shouldn't happen in production.
still an issue, so what to do?