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 2016/12/02 08:48:58 UTC

[jira] [Updated] (OAK-5211) OakDirectory should not save dir listing if no change is done

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

Chetan Mehrotra updated OAK-5211:
---------------------------------
    Labels: performance  (was: )

> OakDirectory should not save dir listing if no change is done
> -------------------------------------------------------------
>
>                 Key: OAK-5211
>                 URL: https://issues.apache.org/jira/browse/OAK-5211
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>              Labels: performance
>             Fix For: 1.6, 1.5.15
>
>
> [~alex.parvulescu] noted that OakDirectory saves the directory listing even if no actual change happened in the directory. Only change that happens is the order of entries in set. 
> In normal cases LuceneIndexEditor avoids initializing the IndexWriter if there is no change. However it can happen that when any node gets deleted the editor performs a delete operation. It can happen that tree being deleted is not indexed but still editor would do this as it cannot determine that easily. This would lead to OakDirectory being closed without any change and thus can lead save of dir listing with just change in order of entries



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