jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3268) Re-index fails on corrupt bundle
Date Thu, 22 Mar 2012 11:16:22 GMT

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

Alex Parvulescu commented on JCR-3268:
--------------------------------------

In the case of a corrupt bundle the ItemStateManager#getItemState can throw an ItemStateException
that stops the repository from starting.

My proposal is to have MultiIndex.createInitialIndex catch the ItemStateException and have
it logged via the OnWorkspaceInconsistency handler.
The error wouldn't be a blocker anymore and if anybody is looking at the workspace consystency
logs will see its message as well.

The simplest way to do this is to wrap log.error into a public method OnWorkspaceInconsistency#logError
and use it from the MultiIndex.
                
> Re-index fails on corrupt bundle
> --------------------------------
>
>                 Key: JCR-3268
>                 URL: https://issues.apache.org/jira/browse/JCR-3268
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: indexing, jackrabbit-core
>            Reporter: Alex Parvulescu
>
> The re-indexing process should be more resilient, log an error and simply continue with
the next node. It doesn't seem useful to refuse repository startup in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message