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

BlockingManager should not blocking invoking thread if stage is not complete

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Final
    • 14.0.0.Final
    • Core
    • None

      BlockingManager is designed to isolate blocking threads and reuse them if the invoking thread is blocking. However, there is no reason for the invoking thread to block waiting on a stage to complete if it isn't completed. This just wastefully uses another thread, we should instead only do the stage join if the current stage is complete.

      This was brought up in https://github.com/infinispan/infinispan/pull/9941#discussion_r823796053

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: