Details
-
Bug
-
Resolution: Done
-
Blocker
-
5.0.0.Final
-
None
Description
When you try to update parent node in one session and remove child node in another session within same transaction, you will get exception while saving second session.
Exception:
Caused by: javax.jcr.InvalidItemStateException: This session tried to save changes to node with key 'Cannot locate child node: c0812dd7505d645b6e581e-3081-4488-92d8-f8152c3646ee within parent: c0812dd7505d6410124ee4-50c3-4d7f-850b-be55cc2851e5', but it was removed by another session.
at org.modeshape.jcr.JcrSession.save(JcrSession.java:1171)
Caused by: org.modeshape.jcr.cache.NodeNotFoundInParentException: Cannot locate child node: c0812dd7505d645b6e581e-3081-4488-92d8-f8152c3646ee within parent: c0812dd7505d6410124ee4-50c3-4d7f-850b-be55cc2851e5
at org.modeshape.jcr.cache.document.LazyCachedNode.parentReferenceToSelf(LazyCachedNode.java:238)
at org.modeshape.jcr.cache.document.LazyCachedNode.getSegment(LazyCachedNode.java:282)
... 5 skipped due to configuration
Attachments
Issue Links
- relates to
-
MODE-2608 Not possible to update parent node and remove child node within same session if session.save() called several times
- Closed