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

When a query fails and closes the transaction, other queries in the same transaction throw unhelpful errors #373

Open
alexjpwalker opened this issue Mar 22, 2022 · 0 comments

Comments

@alexjpwalker
Copy link
Member

alexjpwalker commented Mar 22, 2022

Problem to Solve

When running concurrent queries in a transaction, and one of them fails causing the transaction to close, it's possible to get an unhelpful "Transaction closed" error when fetching answers for the other queries.

Proposed Solution

Solving this properly requires us to implement an improved error protocol:

Additional information

We've previously tried to fix this issue with patches:

But they resulted in error handling becoming counter-intuitive in the context of a stream or iterator. We ended up reverting these patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants