[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1499) Race condition in RegionManager.createRegion

Dennis Reed (JIRA) jira-events at lists.jboss.org
Mon Mar 30 14:24:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCACHE-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12459693#action_12459693 ] 

Dennis Reed commented on JBCACHE-1499:
--------------------------------------

The race condition around the two lists also exists in removeRegion.

Upon further investigation, createRegion will always have this issue with two calls to create the same region name (even when the race condition is not hit)
See https://jira.jboss.org/jira/browse/JBCACHE-1500

> Race condition in RegionManager.createRegion
> --------------------------------------------
>
>                 Key: JBCACHE-1499
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1499
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Eviction
>    Affects Versions: 1.4.1.SP9
>            Reporter: Dennis Reed
>            Assignee: Manik Surtani
>
> There is a race condition in RegionManager.createRegion.
> If two calls to create a region with the same FQN come in at the same time, they may both succeed.
> The last one to be added will win in the RegionManager (stored in a ConcurrentHashMap), while the first will win in the EvictionTimerTask (stored in a HashSet).
> This will cause the Region to not be monitored for evictions, and allow the eviction queue to fill up.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosscache-issues mailing list