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

Using same index definition for both async and sync indexing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.8, 1.6.0
    • query
    • None

    Description

      Currently one can set "async" flag on an index definition to indicate wether given index should be effective for synchronous commit or to be used for async indexing. For Hybrid Lucene indexing case OAK-4412 we need to have a way where same index definition gets used in both.

      As discussed on DL [1] for this to be done following changes need to be done

      1. Making async as a multi value property.
      2. Introducing a new IndexEditorProvider interface which can accept an IndexingContext instance (OAK-4642). This provides access to
        1. indexing mode - sync or async
        2. index path of the index (see OAK-4152)
        3. CommitInfo (see OAK-4640)

      [1] http://mail-archives.apache.org/mod_mbox/jackrabbit-oak-dev/201608.mbox/%3CCAHCW-mk1HzAxy8fk17SzYDcfLYY%3D0HUp93FCYoxpTP37cNgb%2Bg%40mail.gmail.com%3E

      Attachments

        1. OAK-4641.patch
          2 kB
          Alex Deparvu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: