You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Mohit Kataria (JIRA)" <ji...@apache.org> on 2019/04/23 08:41:00 UTC
[jira] [Commented] (OAK-8261) Indexing lane failing but the index
is not marked corrupt
[ https://issues.apache.org/jira/browse/OAK-8261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16823834#comment-16823834 ]
Mohit Kataria commented on OAK-8261:
------------------------------------
The bug is because we are catching IOexception and then throwing RuntimeException [1]. As we are not handling runtime exception in methods above in hierarchy which leads to bypassing code which marks index as corrupt[2].
Added a catch block to handle this exception.
[1]: [https://github.com/apache/jackrabbit-oak/blob/be6298bfba8957f020a0402b7757da1cad2c0ac8/oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/BlobStoreBlob.java#L48]
[2]: [https://github.com/apache/jackrabbit-oak/blob/be6298bfba8957f020a0402b7757da1cad2c0ac8/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java#L732]
CC: [~tmueller], [~catholicon]
> Indexing lane failing but the index is not marked corrupt
> ---------------------------------------------------------
>
> Key: OAK-8261
> URL: https://issues.apache.org/jira/browse/OAK-8261
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: indexing
> Reporter: Mohit Kataria
> Priority: Minor
>
> Steps to reproduce issue:
> Delete blob filesystem(in case of tarmk) from repository/datastore and empty repository/index folder.
> Now asyncIndexUpdate will run periodically and fail but index won't get marked as corrupt.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)