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

MODE-2672 Fixes the handling of node removals spanning multiple session saves via the same user transaction #1639

Merged
merged 1 commit into from Mar 15, 2017

Conversation

hchiorean
Copy link
Member

The problem was that the RelationalDb was incorrectly sending back a "dummy" document which had no ID causing subsequent failures.

This commit contains an additional (unrelated) change which clears the internal JcrSession state after a successful save or refresh. This should ensure better memory handling as it does not keep "hydrated" JCR node references in the internal cache

…on saves via the same user transaction

The problem was that the RelationalDb was incorrectly sending back a "dummy" document which had no ID causing subsequent failures.
This commit contains an additional (unrelated) change which clears the internal JcrSession state after a successful save or refresh. This should ensure better memory handling as it does not keep "hydrated" JCR node references in the internal cache
Copy link
Contributor

@rhauch rhauch left a comment

Choose a reason for hiding this comment

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

Looks good.

@hchiorean hchiorean merged commit 1f5eccf into ModeShape:master Mar 15, 2017
@hchiorean hchiorean deleted the MODE-2672 branch March 15, 2017 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants