[jboss-jira] [JBoss JIRA] (JBJCA-1236) Race condition in SemaphoreConcurrentLinkedQueueManagedConnectionPool

John O'Hara (JIRA) issues at jboss.org
Mon Nov 17 12:43:39 EST 2014


    [ https://issues.jboss.org/browse/JBJCA-1236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020536#comment-13020536 ] 

John O'Hara commented on JBJCA-1236:
------------------------------------

PR for 1.2: https://github.com/ironjacamar/ironjacamar/pull/259

> Race condition in SemaphoreConcurrentLinkedQueueManagedConnectionPool
> ---------------------------------------------------------------------
>
>                 Key: JBJCA-1236
>                 URL: https://issues.jboss.org/browse/JBJCA-1236
>             Project: IronJacamar
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0.Final
>            Reporter: John O'Hara
>            Assignee: Jesper Pedersen
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list