jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.87k stars 872 forks source link

How to recover data? #986

Closed liuzhen6835 closed 3 years ago

liuzhen6835 commented 3 years ago

window10

mapdb:3.0.8

DB db = DBMaker .fileDB(dbPath) .closeOnJvmShutdown() .transactionEnable() .make();

JVM crash,some data is not commit, how to recover these data?

jankotek commented 3 years ago

Uncommited data are lost on JVM crash. That is by design.