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

Is a file-based MapDB multi-process safe? #968

Closed roookeee closed 4 years ago

roookeee commented 4 years ago

Can I use one file to back e.g. a MapDB HashSet from multiple processes? Thread-safety doesn't guarantee this and the documentation contains no info on this matter

andrm commented 4 years ago

No, only one process can open a DB file at any given time.