You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alex Parvulescu (Commented) (JIRA)" <ji...@apache.org> on 2012/03/22 12:16:22 UTC

[jira] [Commented] (JCR-3268) Re-index fails on corrupt bundle

    [ 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