Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1236

Race condition in SemaphoreConcurrentLinkedQueueManagedConnectionPool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.30.Final, 1.2.1.Final
    • 1.0.29.Final, 1.2.0.Final
    • Core
    • None

      A race condition in the ConnectionListenerWrapper and incorrect logic when returning the ConnectionListener object to the ConcurrentLinkedQueue means that stale field values are sometimes seen for ConnectionListenerWrapper.hasPermit().

      Under heavy contention, a stale value in hasPermit() means permits.release() is not called and the semaphores available reduce over time.

      The mcp effectively shrinks over time.

              jpederse@redhat.com Jesper Pedersen
              johara@redhat.com John O'Hara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: