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

Insert of JDBC session attribute fails if concurrent request deletes session #1153

Closed
vpavic opened this issue Aug 9, 2018 · 0 comments
Closed
Assignees
Labels
in: jdbc type: backport An issue that is a backport of another issue to a maintenance branch type: bug A general bug
Milestone

Comments

@vpavic
Copy link
Contributor

vpavic commented Aug 9, 2018

Backport of #1031.

@vpavic vpavic added type: bug A general bug Data Store type: backport An issue that is a backport of another issue to a maintenance branch in: jdbc labels Aug 9, 2018
@vpavic vpavic added this to the 1.3.4 milestone Aug 9, 2018
@vpavic vpavic self-assigned this Aug 9, 2018
vpavic added a commit that referenced this issue Aug 13, 2018
At present, the insert of new attributes in JdbcOperationsSessionRepository is done unconditionally. This can cause data integrity violation errors with concurrent requests, where one request attempts to add new session attribute while the other, concurrent request, deletes the session.

This commit addresses the described scenario by executing insert of new attributes conditionally on presence of parent record.

Closes gh-1153
@vpavic vpavic closed this as completed Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jdbc type: backport An issue that is a backport of another issue to a maintenance branch type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant