[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4713) Avoid using same cache instance for storing CacheValue and evictAll notifications

Gail Badner (JIRA) noreply at atlassian.com
Mon Jul 12 16:12:18 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-4713:
-----------------------------


This issue is currently scheduled for 3.5.x, but not 3.6. Should this issue be fixed in 3.6 as well (or instead)? If so, please correct the fix version(s).

Thanks,
Gail

> Avoid using same cache instance for storing CacheValue and evictAll notifications
> ---------------------------------------------------------------------------------
>
>                 Key: HHH-4713
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4713
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: caching (L2)
>    Affects Versions: 3.5.0-Beta-2
>            Reporter: Galder Zamarreno
>            Assignee: Galder Zamarreno
>             Fix For: 3.5.x
>
>
> Store evictAll information in a separate infinispan cache instance in order to avoid doing stuff like this in BaseRegion.toMap which could be quite expensive in the context of SecondLevelCacheStatistics calculations:
>    public Map toMap() {
>       if (checkValid()) {
>          // If copying causes issues, provide a lazily loaded Map
>          Map map = new HashMap();
>          Set<Map.Entry> entries = cacheAdapter.toMap().entrySet();
>          for (Map.Entry entry : entries) {
>             Object key = entry.getKey();
>             if (!CacheHelper.isEvictAllNotification(key)) {
>                map.put(key, entry.getValue());
>             }
>          }
>          return map;
>       }
>       return Collections.EMPTY_MAP;
>    }

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

        


More information about the hibernate-issues mailing list