Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9777

Default AdvancedCacheLoader#publishEntries can hang with more than 2048 entries

    XMLWordPrintable

Details

    Description

      The default method for AdvancedCacheLoader#publishEntries relies on the invocation of the process method. This uses the PersistenceManagerCloseableSupplier to handle this. Unfortunately it uses a WithinThreadExecutor, which actually can cause the process method to deadlock with a single thread as it can fill up the queue of 2048 elements.

      We should instead use a single threaded executor which would allow the loading of elements and retrieval in parallel on 2 different threads.

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: