typedb-driver icon indicating copy to clipboard operation
typedb-driver copied to clipboard

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

Open alexjpwalker opened this issue 2 years ago • 0 comments

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:

  • https://github.com/vaticle/typedb/issues/6146)

Additional information

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

  • #367
  • #368

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

alexjpwalker avatar Mar 22 '22 11:03 alexjpwalker