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

StackOverflow possible in BufferedIndexer

    Details

    • Branch Version/s:
      7.0.x, 6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      1

      Description

      Large transactions can cause a continuous buffer overflow condition in the BufferedIndexer if indexer requests create new indexer requests (eg User indexer requests create a Contact indexer request).

      In this scenario:
      BufferedIndexer has 100 IndexerRequests of the User model and a max buffer of 100. User 101 is then added to the queue. User 1 is then popped to be reindexed immediately which creates an IndexerRequest for User 1's Contact. This immediately causes the BufferedIndexer to index User2 before User1 is done reindexing which adds Contact 2 which immediately causes User 3 to be reindexed since the buffer is still full.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shitian.zhang Shitian "Shelton" Zhang (Inactive)
                Reporter:
                edward.han Edward Han
                Participants of an Issue:
                Recent user:
                André Ricardo Barreto de Oliveira
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 47 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP12
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  Master