[
https://issues.apache.org/jira/browse/OAK-939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra updated OAK-939:
--------------------------------
Labels: compatibility (was: )
> Removing modified node in different session leads to conflict
> -------------------------------------------------------------
>
> Key: OAK-939
> URL: https://issues.apache.org/jira/browse/OAK-939
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: jcr
> Affects Versions: 0.8
> Reporter: Chetan Mehrotra
> Labels: compatibility
> Attachments: OAK-939.patch
>
>
> If a node is modified and remove in different session then it leads to
> conflict failed exception. Following testcase passes on JR2 and fails on Oak
> {code:java}
> @Test
> public void removeNodeInDifferentSession() throws RepositoryException {
> Session s3 = getRepository().login(new SimpleCredentials("admin",
> "admin".toCharArray()));
> Session s2 = getRepository().login(new
> SimpleCredentials("admin","admin".toCharArray()));
> s2.getNode(TEST_PATH).setProperty("foo","bar");
> s2.save();
> s3.getNode(TEST_PATH).remove();
> s3.save();
> }
> {code}
> The testcase would pass if session refresh interval is set to zero
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira