SnappyDB icon indicating copy to clipboard operation
SnappyDB copied to clipboard

How to close previosly opened database

Open vladaman opened this issue 9 years ago • 4 comments

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?

vladaman avatar Nov 22 '15 20:11 vladaman

show your code where you open DB.

Y-E-P avatar Jan 10 '16 21:01 Y-E-P

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

vladaman avatar Apr 16 '16 13:04 vladaman

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.

AlexeyPoldeo avatar Nov 08 '16 05:11 AlexeyPoldeo

still an issue, so what to do?

ghost avatar Mar 15 '18 09:03 ghost