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/07/28 11:13:20 UTC

[jira] [Resolved] (OAK-4613) Suggest directory should be opened in read only mode

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

Chetan Mehrotra resolved OAK-4613.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.7

Done in 1754393


> Suggest directory should be opened in read only mode
> ----------------------------------------------------
>
>                 Key: OAK-4613
>                 URL: https://issues.apache.org/jira/browse/OAK-4613
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.6, 1.5.7
>
>
> {{IndexNode}} currently opens the suggest directory in following way 
> {code}
>  if (definition.isSuggestEnabled()) {
>       suggestDirectory = new OakDirectory(defnNodeState.builder(), ":suggest-data", definition, false);
> }
> {code}
> It has two issues
> * It open a builder on existing node state. Instead of that it should use {{ReadOnlyBuilder}}
> * The directory should be opened in read only mode



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