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

Race condition in SemaphoreConcurrentLinkedQueueManagedConnectionPool

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: