[
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)