Skip to content

Conversation

@zhenlineo
Copy link
Contributor

@zhenlineo zhenlineo commented Aug 2, 2016

Added session#reset to stop long running statements and reset the session to a clean state

/**
* Stop running more statements in this session and rest the session to a clean state.
*/
void kill();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per earlier conversation, this should be named reset and could be described as follows:

/**
 * Reset the current session. This sends an immediate RESET signal to the server which both interrupts
 * any statement that is currently executing and ignores any subsequently queued statements. Following
 * the reset, the current transaction will have been rolled back and any outstanding failures will
 * have been acknowledged.
 */
void reset();

Added test using long running procedures to test session.reset
Made the client to not ack_failure while a reset is called asynclly but has not yet received success to avoid ack_failure on IDEL state in server
@technige technige merged commit 4f069f0 into neo4j:1.1 Aug 3, 2016
@zhenlineo zhenlineo deleted the 1.1-kill-query branch August 3, 2016 15:31
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