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

v1.0.9 circular queue persistence #996

Open javanotes opened 3 years ago

javanotes commented 3 years ago

I am not able to have circular queue persist on file. The pattern I am using on dequeueing - I do a poll(), after few operations, I do a db.commit().

I am expecting in between the poll and commit, if my process crashes, the head should still remain on file, and available on next poll. Is that a correct expectation?