[
https://issues.apache.org/jira/browse/JCR-2908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
codeparser updated JCR-2908:
----------------------------
Attachment: addNode_InMultipleThreads_WithTransaction.txt
upload the test case for this issue.
you could put it in
http://svn.apache.org/repos/asf/jackrabbit/branches/2.2/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java
In order to reproduce this issue easily, you could start the test with a clean
content repository.
> deadbeef-face-babe-cafe-babecafebabe has been modified externally
> -----------------------------------------------------------------
>
> Key: JCR-2908
> URL: https://issues.apache.org/jira/browse/JCR-2908
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: transactions, versioning
> Affects Versions: 2.2.0
> Environment: JDK1.6
> WIN XP
> Reporter: codeparser
> Attachments: addNode_InMultipleThreads_WithTransaction.txt
>
>
> The use case is as follows:
> 1. create two node named "folder1" and "folder2"
> 2. create one thread which create twenty versionable nodes under folder1
> within a transaction.
> 3. create another thread which create twenty versionable nodes under folder2
> within a transaction.
> 4. repeat step 2 and step3 and then it will throw below Exception:
> Caused by: org.apache.jackrabbit.core.state.StaleItemStateException:
> deadbeef-face-babe-cafe-babecafebabe has been modified externally
> at
> org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:663)
> at
> org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1457)
> at
> org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163)
> ... 11 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira