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

Weak reference targets added after the reference property are not indexed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.12
    • 0.13
    • None
    • None

    Description

      with the introduction of a special index for (weak)references by OAK-1137, they are only indexed if a reference property is written, but not if a weak reference target is added later on.

      see org.apache.jackrabbit.oak.jcr.ReferencesTest#testWeakReferencesAddLater that fails currently.

      the only workaround is to re-set the weak reference property after adding the referenceable node.

      looking at this regression, I don't think that the current approach of storing the back references is a good one as it does not work for this case. IMO a separate index of all reference properties, grouped by UUID of the target referenceable needs to be kept outside of the normal tree.

      Attachments

        1. OAK-1242.patch
          23 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: