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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/10/21 13:40:33 UTC

[jira] [Commented] (OAK-2203) Full reindexing is triggered when the IndexEditor is missing

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

Chetan Mehrotra commented on OAK-2203:
--------------------------------------

The logic cannot move forward in absence of index provider without marking the index for reindex otherwise the index editor would _miss out see some changes_. I see two options

# Foe async index update
## If an index provider is missing  we terminate that operation and let normal retry logic perform the index again
## Do a wait for upto some configured time interval and then mark it for reindex. The wait can be done for a whitelist of index provider
# For sync case we have to trigger reindex or keep current request waiting for some time

> Full reindexing is triggered when the IndexEditor is missing
> ------------------------------------------------------------
>
>                 Key: OAK-2203
>                 URL: https://issues.apache.org/jira/browse/OAK-2203
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, oak-lucene, oak-solr
>    Affects Versions: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.1.0, 1.0.7, 1.1.1
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>             Fix For: 1.0.8, 1.1.2
>
>
> Currently the IndexUpdate class responsible for handling the index editors is a bit eager in triggering a reindex in the case where is doesn't find the editor for a specific index type [0].
> This has a few drawbacks:
>  - if you update a bundle with an index impl (ex: oak-lucene) IndexUpdate will catch that downtime, see the index as offline and ask for a reindex. not cool.
>  - it will eagerly set 'reindex=true' even on nodes that are not index definitions, causing mild annoyances (OAK-2024).
> This begs the question: when should we automatically mark for reindex an index definition?
> [0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexUpdate.java#L162



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)