akka-persistence-mongo
akka-persistence-mongo copied to clipboard
Risk of race condition when deleting journal collection ?
When we do (in CasbahPersistenceJournaller.deleteFrom() for example) :
if (driver.useSuffixedCollectionNames && driver.suffixDropEmpty && journal.count() == 0) {
journal.dropCollection()
...
Is there a risk that documents are inserted in collection between test and drop ?
Fixed by #205 - released with v2.1.1
. Thanks @gbrd!
This one is independent and may not be fixed bar #205 right ?
My mistake.