bulldog2011 / bigqueue

A big, fast and persistent queue based on memory mapped file.
http://bulldog2011.github.com/bigqueue
Apache License 2.0
557 stars 219 forks source link

BigArrayImpl.removeBeforeIndex() is checking the timestamp, it might cause data corruption #10

Open metacret opened 10 years ago

metacret commented 10 years ago

We observed some data corruption on bigqueue and I can reproduce this. The workaround is deleting page files with the page file index itself, instead of checking the timestamp. I will send you the PR with the reproducible unit testing.