Hello,

I have a large repository that has gone into some kind of inconsistency with 
the node structure. When I'm trying to restore from a mysql database backup it 
starts up nicely and does create about 10GB of lucene indexes and then suddenly 
fails which leaves the repository in a not started state.

Is there anything that can be done to solve this? By the exception it looks 
like one node is expected to have a child node that doesn't exists anymore. Is 
it possible to let jackrabbit ignore this and continue or repair the 
inconsistency?

The inconstancy is not in the lucene index it's in the database so doing an 
index consistencyCheck and repair doesn't work.

Starting the repository without the SearchIndex works but essential functions 
to get users group membership fails if there is no index available so there 
isn't possible to authenticate as a user. (and off course searching doesn't 
work)

The exception:

2012-12-05 15:24:30,210 ERROR [Thread-23] (OnWorkspaceInconsistency.java:58) - 
Node 
/root/60edd27f-86bc-4f82-8bc0-714ea595823b/c95433b5-7f57-4e89-890d-96c4eb8dd919/SYSTEM/data/dc4b569b-9e13-47e1-bb46-b14927126a81
 (7c1f194c-120f-4187-b745-543cddeacbf9) has missing child 
'21966392-de05-4d29-83dd-7b3104fbf187' (02903eca-ce44-4702-af63-66dc3b870237)

Caused by: java.io.IOException: Error indexing workspace
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:395)
        at 
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:564)
        at 
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:78)
        at 
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:655)
        ... 12 more
Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: 
02903eca-ce44-4702-af63-66dc3b870237
        at 
org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:285)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1236)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1246)
        at 
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:387)
        ... 15 more


Thanks!

/Nicklas

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to