[
https://issues.jboss.org/browse/ISPN-9777?page=com.atlassian.jira.plugin....
]
William Burns commented on ISPN-9777:
-------------------------------------
Note this issue can be worked around by overriding the publishEntries method to do the
same as the PR or even better update an existing AdvancedCacheLoader to use processEntries
as it should.
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
Priority: Major
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)