Skip to content

Restore Session.reset as a private API #1390

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

Closed
wants to merge 1 commit into from

Conversation

loveleif
Copy link

@loveleif loveleif commented Mar 8, 2023

Restores Session.reset() as a private API. Intended for use in Cypher Shell to perform query cancellation (user press ctrl+c), which has been broken since reset was removed. We considered using 4.4 driver in 5.x as a work around, but it was decided to not merge because there were some unwanted effects (see https://github.com/neo-technology/neo4j/pull/18409).

Reverts 33447f5 with the following modifications:

  • reset() is now not available in the public API.
  • Adapt tests to new APIs.
  • Source code for longRunningStatement.jar is now included in the project. Note, this module is not included as part of the parent build, it can be run locally to generate a new jar file in case of breaking procedure API changes.

https://trello.com/c/pV2nRf9x/359-mechanism-for-query-cancellation

@loveleif loveleif force-pushed the tx-reset-2 branch 4 times, most recently from 50bf9df to f2fdd2e Compare March 8, 2023 15:06
@loveleif loveleif marked this pull request as ready for review March 8, 2023 16:58
@loveleif loveleif requested a review from injectives March 13, 2023 13:26
@injectives
Copy link
Contributor

#1394

@injectives injectives closed this Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants