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

Property indexes reindex flag getting reset to true at startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.6, 1.4
    • jcr
    • None

    Description

      At times it is seen that reindex flag for property indexes is getting reset to true. As per analysis by alex.parvulescu it happens due to the order in which repository gets started and PropertyIndexEditorProvider gets registered.

      If the editor is registered after repository got started then missing index provider for the 'property' type will silently set all the existing property index definitions reindex flags to true.

      After some offline discussion it was decided that proper fix here would be to ensure that repository is only started after property index editor gets registered. This would ensure that the whiteboard tracker would be opened in that activate itself after the provider is registered and it is ensured that if a tracker is opened it gets access to already registered services without any delay. This would avoid any scenario where commit happens without any property index editor being present

      Attachments

        1. OAK-3366.patch
          7 kB
          Chetan Mehrotra
        2. OAK-3366-01.patch
          7 kB
          Francesco Mari

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: