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

3.0: Ensure queries are interruptible and transaction close cleans up resources #664

Open
krishnangovindraj opened this issue Jun 19, 2024 · 0 comments
Assignees
Milestone

Comments

@krishnangovindraj
Copy link
Member

krishnangovindraj commented Jun 19, 2024

Problem to Solve

There is no way to interrupt long-running queries in TypeDB 2.x (apart from closing the session). This allows a few long-running transactions to make the whole server unresponsive. Further, closing transactions (or interrupting queries) did not guarantee that the resources would be freed (or that the work would cease in the background). We want to avoid these problems.

Current Workaround

We try to explicitly free all resources on transaction close. Closing the session also allows us to kill an unresponsive query ( since typedb#7088 )

Proposed Solution

Support a query-interrupt API in rust.

Additional Information

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

1 participant