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

Manik Surtani (JIRA) jira-events at lists.jboss.org
Mon Mar 30 04:50:22 EDT 2009


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

Manik Surtani commented on JBCACHE-1499:
----------------------------------------

Could you please specify which version is affected?

> 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.X
>            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