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

Thomas Mueller commented on OAK-9108:
-------------------------------------

https://github.com/oak-indexing/jackrabbit-oak/pull/193

> Change default timeout to mark indexes corrupt
> ----------------------------------------------
>
>                 Key: OAK-9108
>                 URL: https://issues.apache.org/jira/browse/OAK-9108
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>              Labels: index
>
> Currently, async indexes (Lucene) are marked corrupt if they couldn't be 
> updated for some time. I think the default delay of 30 minutes is far too 
> low. In the past, we have seen the following cases where async indexing is 
> delayed:
> * Topology problems (no leader)
> * High load prevents updating them
> For cases where index update is run, but failing, include:
> * Restart of Oak with inconsistent data in the /repository/index directory
> * Out-of-disk-space
> For these cases, it's better to stop Oak, clean the index directory, and 
> restart. This might anyway be happening regularly (e.g. daily). Marking the 
> index corrupt, so that reindexing is needed, doesn't seem to be needed or 
> helping.
> This setting is already configurable in 
> org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService: 
> failingIndexTimeoutSeconds. But instead of changing the configuration 
> everywhere, it's probably better to change the default value for 
> failingIndexTimeoutSeconds in Oak, to 604800L = 60L * 60 * 24 * 7 (one week).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to