Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2868

Collection updates may not trigger reindexing despite @ContainedIn in some circumstances

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.8.0.CR1, 5.5.8.Final, 5.7.2.Final, 5.6.3.Final
    • Component/s: orm
    • Labels:
      None

      Description

      When a collection embedded in an index (either through an @IndexedEmbedded or @Field) is modified, changes will not trigger reindexing of the holding entity if this collection is an AbstractPersistentCollection with org.hibernate.collection.internal.AbstractPersistentCollection.isOperationQueueEnabled() returning true.

      The problem was only confirmed on 5.8, but since the cause was HSEARCH-782 Closed I expect it to be present in about all recent versions of Hibernate Search.

      I will submit a PR with a test case demonstrating the issue, and a fix.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yrodiere Yoann Rodière
                Reporter:
                yrodiere Yoann Rodière
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: