Delete does not adhere to Eventsourced API
nvollmar opened this issue · comments
Nicolas Vollmar commented
Versions used
akka-persistence-jdbc version: 5.0.1
Expected Behavior
Scala doc of deleteMessages specifies
Permanently deletes all persistent messages with sequence numbers less than or equal toSequenceNr.
Actual Behavior
Events less than the specified toSequenceNr are deleted only - query still returns last event that should also have been deleted.
Reproducible Test Case
See DeleteTest in #550
Nicolas Vollmar commented
I did some investigation, and adding
.filter(!_.deleted)
to
would fix the test