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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/07/09 12:29:04 UTC

[jira] [Resolved] (OAK-1959) AsyncIndexUpdate unable to cope with missing checkpoint ref

     [ https://issues.apache.org/jira/browse/OAK-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu resolved OAK-1959.
----------------------------------

    Resolution: Fixed

fixed in trunk with rev 1609081, merged to 1.0 with rev 1609083.

> AsyncIndexUpdate unable to cope with missing checkpoint ref
> -----------------------------------------------------------
>
>                 Key: OAK-1959
>                 URL: https://issues.apache.org/jira/browse/OAK-1959
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0, 1.0.1
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>             Fix For: 1.0.2, 1.1
>
>
> The async index uses a checkpoint reference stored under the _:async_ hidden node as a base for running the index diff.
> It might happen that this reference is stale (pointing to checkpoints that no longer exist) so the async indexer logs a warning that it will reindex everything and will start its work.
> The trouble is with the #mergeWithConcurrencyCheck which does not cope well with this scenario. Even if the ref checkpoint is null, it will throw a concurrent update exception which will be logged as a misleading debug log _Concurrent update detected in the async index update_.
> Overall the code looks stuck in an endless reindexing loop.
> {code}
> *WARN* [pool-9-thread-1] org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate Failed to retrieve previously indexed checkpoint 569d8847-ebb6-4832-a55f-2b0b1a32ae71; re-running the initial async index update
> *DEBUG* [pool-9-thread-1] org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate Concurrent update detected in the async index update
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)