input-output-hk / iodb

Multiversioned key-value database, especially useful for blockchain
Creative Commons Zero v1.0 Universal
95 stars 13 forks source link

Unit test durability, data should survive JVM crash #13

Closed jankotek closed 6 years ago

jankotek commented 7 years ago

MapDB has unit test which causes JVM process to seg-fault while data are written to disk. It tests that commits are durable, and commited data survive JVM crash. We should port this code to IODB and test IODB similar way.

Relevant code is here: https://github.com/jankotek/mapdb/blob/master/src/test/java/org/mapdb/crash/CrashJVM.kt