You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2009/02/13 12:25:59 UTC

[jira] Updated: (JCR-1940) Exception when concurrently adding documents to Jack rabbit repository with clustering enabled

     [ https://issues.apache.org/jira/browse/JCR-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Klimetschek updated JCR-1940:
---------------------------------------

    Priority: Major  (was: Blocker)

It is perfectly valid to get an InvalidItemStateException if two different sessions (whether on the same standalone jackrabbit or on different cluster nodes) write to the same node or add nodes to the same parent. See the JCR specification, for example section 7.1.3.3: http://www.day.com/specs/jcr/1.0/7.1.3.3_Invalid_Items.html

You noted that the problem does not occur when you turn off clustering, which might indicate a bug. Could you please elaborate on what changes you made concurrently and check if the process (and timing...) is exactly the same in the two situations?

> Exception when concurrently adding documents to Jack rabbit repository with clustering enabled
> ----------------------------------------------------------------------------------------------
>
>                 Key: JCR-1940
>                 URL: https://issues.apache.org/jira/browse/JCR-1940
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.5.0
>         Environment: OS - Win 2000
> JackRabbit Jars - 1.5
>            Reporter: Richa Khurana
>
> We have a enabled jackrabbit clustering. In this mode following exception occurs when 2 users simultaneouly add documents to Jack rabbit repository registered with node id 1 and 2 respectively-
> 14:59:55,312 ERROR [DocumentHelper] Exception occurred while adding a manually uploaded document to the jackrabbit:
> javax.jcr.InvalidItemStateException: cafebabe-cafe-babe-cafe-babecafebabe has been modified externally
>         at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1109)
>         at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:846)
> Another observation is that when we disable clustering and both users have same node id in cluster configuration in repository.xml, the error doesnt appear.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.