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

race condition between PoolFiller and CapacityFiller results in wrong pool statistics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • WildFly/IronJacamar 1.4.2.Final
    • None
    • 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

        1. fail.log
          98 kB
        2. pass.log
          134 kB

            flaviarnn Flavia Rainone
            msimka@redhat.com Martin Simka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: