jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-4613) Suggest directory should be opened in read only mode
Date Thu, 28 Jul 2016 11:12:20 GMT
Chetan Mehrotra created OAK-4613:
------------------------------------

             Summary: 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


{{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)

Mime
View raw message