Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Retry with same event id on write timeout #1357
Tested this by forcing an idempotent write on the projection definition stream when starting and stopping the projection.
On 4.0.2, the projection retries the write and then fails when the write succeeds. Any further attempts to start or stop the projection is met with "Projection version and event number mismatch" and attempting to reset the projection results in "Internal error: projection definition must be saved before forced updating version."
With this PR, the projection retries the write, Event Store logs an Idempotent write and the projection continues without any issues.