Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Persistent subscriptions: Ignore replayed events during checkpointing #1890
This PR fixes a bug occurring in persistent subscription where an invalid checkpoint is written when parked events are replayed and the size of the parked stream is larger than the size of the original stream.
Replaying parked messages multiple times will make the issue more likely to happen (assuming the parked stream is not empty).
Now comes the important part:
Replay parked events a few more times and you should see a checkpoint being written with the event number from the parked stream in