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

Subscriptions can send messages out of order #996

Closed
joshua-spacetime opened this issue Mar 20, 2024 · 0 comments · Fixed by #997
Closed

Subscriptions can send messages out of order #996

joshua-spacetime opened this issue Mar 20, 2024 · 0 comments · Fixed by #997
Assignees
Labels
bug Something isn't working

Comments

@joshua-spacetime
Copy link
Collaborator

The following ordering is currently possible

Initial subscription evaluated 
    -> Tx starts
    -> Tx commits
    -> updates for Tx sent to client
    -> updates for initial subscription sent to client

That is, it is possible for a transaction to execute and send its updates to the client after an initial subscription has been evaluated but before the initial subscription has sent its results to the client. This will result in the client receiving an inconsistent view of the database.

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 a pull request may close this issue.

1 participant