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 2013/12/02 13:37:36 UTC

[jira] [Updated] (OAK-1246) Make AsynchIndexUpdate task to run only on a single node in a cluster

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

Chetan Mehrotra updated OAK-1246:
---------------------------------

    Attachment: OAK-1246.diff

Patch for the same. It uses two approaches
* Make use of SLING-2979 feature when running Oak in a Sling instance to run the job on a single node
* Add an implicit tracking of concurrent run using the async-status flag. It check if its already in {{running}} state or not. And if running has it timed out (default to 15 minutes). If the status is running for duration more than the timeout it would consider that other clutser node is dead and would start the indexing


> Make AsynchIndexUpdate task to run only on a single node in a cluster
> ---------------------------------------------------------------------
>
>                 Key: OAK-1246
>                 URL: https://issues.apache.org/jira/browse/OAK-1246
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.12
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>              Labels: cluster
>         Attachments: OAK-1246.diff
>
>
> Currently the {{AsynchIndexUpdate }} job which performs the indexing in background is run on every node in a cluster. This at times causes commit failures when running Oak in a cluster using Mongo MK. As merging of indexed content say Lucene is tricky to implement it would be better to restrict this job to run as a singleton in a cluster
> See http://markmail.org/thread/qff2fj7nqtbuhr4i for more discussion



--
This message was sent by Atlassian JIRA
(v6.1#6144)