[
https://issues.apache.org/jira/browse/JCR-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800162#action_12800162
]
Bart van der Schans commented on JCR-2456:
------------------------------------------
Running with 1.5 and 10 threads I do see these kind of errors:
javax.jcr.InvalidItemStateException: Item cannot be saved because it has
beenmodified externally: node /
java.util.ConcurrentModificationException
I guess these two are expected. And errors like:
javax.jcr.ItemNotFoundException: failed to determine depth of
1d15a661-ad4a-4550-9264-b632f2739dff/{}p23:
1d15a661-ad4a-4550-9264-b632f2739dff/{}p23:
1d15a661-ad4a-4550-9264-b632f2739dff/{}p23
at
org.apache.jackrabbit.core.HierarchyManagerImpl.getDepth(HierarchyManagerImpl.java:492)
at
org.apache.jackrabbit.core.CachingHierarchyManager.getDepth(CachingHierarchyManager.java:259)
at org.apache.jackrabbit.core.ItemImpl.getDepth(ItemImpl.java:1286)
at org.apache.jackrabbit.core.ItemImpl.internalRemove(ItemImpl.java:801)
at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:909)
at
org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:559)
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2308)
at
org.apache.jackrabbit.core.MultiThreadTest$1.run(MultiThreadTest.java:54)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException:
1d15a661-ad4a-4550-9264-b632f2739dff/{}p23
at
org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState(SessionItemStateManager.java:185)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.getItemState(HierarchyManagerImpl.java:150)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.getDepth(HierarchyManagerImpl.java:480)
... 8 more
> Repository is corrupt after concurrent changes with the same session
> --------------------------------------------------------------------
>
> Key: JCR-2456
> URL: https://issues.apache.org/jira/browse/JCR-2456
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: 2.0-beta4
> Reporter: Thomas Mueller
> Attachments: patch-2456.txt, TestMultiThread.java
>
>
> After concurrent write operations using the same session, the repository can
> get corrupt, meaning a ItemNotFoundException is thrown when trying to remove
> a node.
> Concurrent write operations are not supported, however I believe the
> persistent state of the repository should not be get corrupt.
> One way to solve this problem is to synchronize on the session internally.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.