Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v5.x] Fix unqueue first then publish #88

Merged
merged 2 commits into from
Nov 3, 2021

Conversation

jokesterfr
Copy link
Contributor

@jokesterfr jokesterfr commented Nov 2, 2021

We wait for the publisher to fully push the events before flushing the queue. If concurrent .commit() calls are performed this could lead to IDEMPOTENT WRITE errors on the eventstore side, leading to unsent events.

This PR aims at flushing the events before sending them to the publisher, drastically reducing error probability.

@jokesterfr jokesterfr self-assigned this Nov 2, 2021
@jokesterfr jokesterfr added the bug Something isn't working label Nov 2, 2021
@jokesterfr jokesterfr changed the title Fix unqueue first then publish [v5.x] Fix unqueue first then publish Nov 2, 2021
@jokesterfr jokesterfr merged commit 08f1be4 into master Nov 3, 2021
@jokesterfr jokesterfr deleted the fix/concurrent-commit-v5.x branch November 3, 2021 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant