[ 
https://issues.apache.org/jira/browse/JCR-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540799
 ] 

Przemo Pakulski commented on JCR-1197:
--------------------------------------

Marcel, after applying your fix Jackrabbit tests passes, but my application 
tests don't. 
It seems that by removing this line some events can be missed, and index is not 
rebuilt correclty (node can be indexed twice after restore).

I think that problem is with caches that are not maintained correctly. I've 
tried to evict items from ItemManager cache during save(), but is hard to 
understand dependencies between all the caches, and I encountered another 
problem with dispatchindevents and HierarchyManager.

> ItemManager cache is getting out of sync
> ----------------------------------------
>
>                 Key: JCR-1197
>                 URL: https://issues.apache.org/jira/browse/JCR-1197
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.3.3, 1.4
>            Reporter: Przemo Pakulski
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CheckoutFailure.java
>
>
> It seems that ItemManager cache is not maintained correctly. I'm getting 
> InvalidItemStateException: 'propertyId' has been modified externally tryin 
> restore/checkout versionable nodes in single thread.
> ItemState should be evicted from ItemStateManager cache when modified, it 
> seems that status of ItemState is changed to MODIFIED, but itemState remains 
> in the cache.

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

Reply via email to