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/08/13 13:56:12 UTC

[jira] [Updated] (OAK-2029) Oak Lucene index doesn't get notified about updates when index is stored on the file system

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

Chetan Mehrotra updated OAK-2029:
---------------------------------

    Attachment: OAK-2029.patch

Patch with testcase and fix

{{LuceneIndexEditorContext}} would also record some stats in ":status" child node of index definition node. For example
* /oak:index/lucene/:status/lastUpdated - Records time of last update
* /oak:index/lucene/:status/indexedNodes -Number of nodes indexed

With this the IndexNode would detect change in index node and would reopen the Directory

[~alexparvulescu] Can you review the patch?

> Oak Lucene index doesn't get notified about updates when index is stored on the file system
> -------------------------------------------------------------------------------------------
>
>                 Key: OAK-2029
>                 URL: https://issues.apache.org/jira/browse/OAK-2029
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-lucene
>    Affects Versions: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4
>            Reporter: Alex Parvulescu
>            Assignee: Chetan Mehrotra
>         Attachments: OAK-2029.patch
>
>
> It looks like the the lucene IndexTracked class responsible for refreshing the in-memory cache of the lucene index doesn't get the update notification when the index is stored on the file system.
> This results in searches not working until the next restart



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