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

LocalPublisherManager parallel can allow for parallelism up to number of segments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 14.0.0.Dev01
    • 13.0.1.Final
    • Core, Streams
    • None

    Description

      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.

      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: