Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6535 Synchronous Lucene Property Indexes
  3. OAK-6857

Lucene unique index should check path validity for uniqueness constraint

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.11, 1.8.0
    • lucene
    • None
    • L15

    Description

      The UniquenessConstraintValidator currently checks for any new index entry if any matching entry is found in primary (property) and secondary (lucene) index.

      This can lead to false positive where the entry in index is obsolete and due to async index lagging behind is yet not pruned. For e.g. if

      1. Time T1 - path /a/@uuid=1 existed , present in lucene index
      2. Time T2 - path /a removed (async index yet not catched up)
      3. Time T3 - path /b/@uuid=1 being created.

      In this case save should pass. However as async index has yet not catched up it reports a constraint validation exception. As a fix UniquenessConstraintValidator should check if reported paths are valid wrt current revision

      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: