Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9787

race condition between PoolFiller and CapacityFiller results in wrong pool statistics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • JCA
    • None

      There seems to be race condition between PoolFiller and CapacityFiller which results in wrong pool statistics

      I think what happens is:

      • Both add connections to pool in different threads
      • PoolFiller creates connection, then checks pools size and because pool has already certain size, it doesn't add connection and instead it destroys connection which increases destroyedCount

      see SemaphoreConcurrentLinkedDequeManagedConnectionPool.java#L1163

            msimka@redhat.com Martin Simka
            msimka@redhat.com Martin Simka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: