-
Bug
-
Resolution: Done
-
Major
-
13.0.1.Final
-
None
The LocalPublisherManagerImpl will continue to spawn parallel segment handling if the operations are performed asynchronously. This is due to https://github.com/infinispan/infinispan/blob/219a1d560eb1fbf999a9de584a2dae3d8e479242/core/src/main/java/org/infinispan/reactive/publisher/impl/LocalPublisherManagerImpl.java#L344 keeping track of pending segment publishers and continually spawning more if it wasn't done by the invoking thread. This was originally done as this was expected to only happen with a store which was blocking, however can happen if anyone uses an asynchronous method in an operation directly causing the invoking thread to return without processing the value.
This causes undue stress on the parallel invocations. We should limit it to the # of CPU as others to prevent overload.