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

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: