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 consistent use of mayBeReadWrite for deciding to clear the session or not. #860

Merged

Conversation

michael-simons
Copy link
Collaborator

This addresses the following SDN issue: https://jira.spring.io/browse/DATAGRAPH-1407

Basically: The read only indicator of the transaction would overwrite any hint or other means to decide whether it's a rw or ro query. We cannot use it to decide to clear the session or not in a transaction spanning multiple queries.

@torstenkuhnhenne Would that still work with you use case?

Paging @Phoosha here as well.

@Phoosha
Copy link
Contributor

Phoosha commented Nov 5, 2020

That's perfect for me. All I needed is a way to prevent the Session clearing in this case, which this does. And it's even smart enough to figure out itself it's readonly in the most typical cases.

Thanks, @michael-simons! I very much appreciate how you've been finding solutions for various use cases here. 👍

@michael-simons michael-simons merged commit 1c0d10a into 3.2.x Nov 5, 2020
@michael-simons michael-simons deleted the issue/make-consistent-use-of-maybeReadWriteQuery branch November 5, 2020 10:32
michael-simons added a commit that referenced this pull request Nov 5, 2020
@torstenkuhnhenne
Copy link
Contributor

@michael-simons 👍 it still works in my use case. Thanks for asking 😄 Is it possible to get a new release soon?

@michael-simons
Copy link
Collaborator Author

Release 3.2.18 went out on Monday.

@torstenkuhnhenne
Copy link
Contributor

In production since yesterday 😄

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.

None yet

3 participants