[infinispan-issues] [JBoss JIRA] (ISPN-9777) Default AdvancedCacheLoader#publishEntries can hang with more than 2048 entries

William Burns (Jira) issues at jboss.org
Wed Nov 28 14:38:00 EST 2018


William Burns created ISPN-9777:
-----------------------------------

             Summary: Default AdvancedCacheLoader#publishEntries can hang with more than 2048 entries
                 Key: ISPN-9777
                 URL: https://issues.jboss.org/browse/ISPN-9777
             Project: Infinispan
          Issue Type: Bug
          Components: Loaders and Stores
    Affects Versions: 9.3.0.Final
            Reporter: William Burns
            Assignee: William Burns
             Fix For: 10.0.0.Alpha2


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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list