JasperFx / marten

.NET Transactional Document DB and Event Store on PostgreSQL
https://martendb.io
MIT License
2.79k stars 441 forks source link

Add event projection failure scenario when using "Update" #3308

Closed Hawxy closed 1 month ago

Hawxy commented 1 month ago

Unsure if this is related to community reported issues, but whilst building out a potential reproduction I ran into this. ops.Store works fine but ops.Update fails. The observations I've made is that the operations & batch execution appear in the correct order. The last operation in a batch ends up throwing a Marten.Exceptions.NonExistentDocumentException

jeremydmiller commented 1 month ago

@Hawxy I'd rather beat that with documentation that strongly suggests always using Store() inside of projection code.