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

Make sessioin.reset thread-safe #211

Merged
merged 3 commits into from
Sep 8, 2016

Conversation

zhenlineo
Copy link
Contributor

@zhenlineo zhenlineo commented Aug 8, 2016

  • Sync on enqueue and flush to avoid sending reset and other messages at the same time.
  • Also changed response handler stream collector queue to be concurrent queue so that adding into the queue (sending) and removing from the queue (receiving) can be done safely concurrently.
  • Keep ack_fail muted when reset is already send but not replied yet.
  • Sync on tx.markToClose and tx.run to enforce no more statement in the current tx, if tx is already failed (reset).

@zhenlineo zhenlineo force-pushed the 1.1-thread-safe-reset branch 2 times, most recently from 786f858 to b758757 Compare September 6, 2016 10:18
@zhenlineo zhenlineo changed the title [Not ready yet] Make sessioin.reset thread-safe Make sessioin.reset thread-safe Sep 6, 2016
@zhenlineo zhenlineo force-pushed the 1.1-thread-safe-reset branch from 4b1d351 to c9c890f Compare September 8, 2016 09:56
Zhen added 2 commits September 8, 2016 12:18
Sync on `enqueue` and `flush` to avoid sending `reset` and other messages at the same time.
Also changed response handler stream collector queue to be concurrent queue so that adding into the queue (sending) and removing from the queue (receiving) can be done safely concurrently.
Keep `ack_fail` muted when `reset` is already send but not replied yet.
@zhenlineo zhenlineo force-pushed the 1.1-thread-safe-reset branch from c9c890f to 21dedff Compare September 8, 2016 10:19
… tx in the reseted tx.

Sync on tx.markToClose and tx.run to enforce no more statement in the current tx when tx is already failed (reset).
@zhenlineo zhenlineo force-pushed the 1.1-thread-safe-reset branch from 21dedff to 58177f4 Compare September 8, 2016 10:20
@pontusmelke pontusmelke merged commit 1600196 into neo4j:1.1 Sep 8, 2016
@zhenlineo zhenlineo deleted the 1.1-thread-safe-reset branch September 8, 2016 11:49
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