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

BlockingManager should not blocking invoking thread if stage is not complete

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Dev02
    • 14.0.0.Dev01
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: