Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4613

Suggest directory should be opened in read only mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.7, 1.6.0
    • lucene
    • None

    Description

      IndexNode currently opens the suggest directory in following way

       if (definition.isSuggestEnabled()) {
            suggestDirectory = new OakDirectory(defnNodeState.builder(), ":suggest-data", definition, false);
      }
      

      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

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: