Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67703

When creating or updating a ResourcedModel, IndexerRequestBuffer stores and executes two index requests

    Details

      Description

      When creating or updating a ResourcedModel, IndexerRequestBuffer stores and executes two index requests:

      • First request receives the created/modified object
      • Second request receives the resourcePrimKey of object

      (note: JournalArticle, WikiPage and KBArticle are ResourcedModel objects)

      ResourcePrimKey is used by AssetEntries and permission functionality. In case of modify any information stored in AssetEntry or permission, a reindex of the resourcePrimKey is thrown.

      This issue is magnified during staging reindex, as one publish operation can include a large cuantity of ResourceModel objects.

      Steps to reproduce

      1. Activate debug traces for com.liferay.portal.search.internal.buffer (see LPS-64210)
      2. Create a new webcontent and save it
      3. Check log for DefaultIndexerRequestBufferExecutor traces:
        • Expected behavior: 1 index request is executed and there are no duplicated indexation lines
        • Wrong behavior: 2 index request are executed and there are duplicated indexation lines

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            jorge.diaz Jorge Diaz
            Participants of an Issue:
            Recent user:
            André Ricardo Barreto de Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 3 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP3
                7.0.0 DXP SP1
                Master