Issue Type: Bug Bug
Affects Versions: 4.1.9
Assignee: Unassigned
Components: caching (L2)
Created: 17/Dec/12 9:36 AM
Description:

The AS StatefulWithXPCFailoverTestCase test found a regression in Hibernate 4.1.9. The failure may still show at http://hudson.jboss.org/hudson/job/as7-param-pull/5123

org.hibernate.cache.infinispan.access.TransactionalAccessDelegate.remove(Object) is failing to send invalidation message to other cluster members because TransactionalAccessDelegate.writeCache is using CACHE_MODE_LOCAL.

I was able to pass the AS test by changing TransactionalAccessDelegate from:

public TransactionalAccessDelegate(BaseRegion region, PutFromLoadValidator validator) {
      this.region = region;
      this.cache = region.getCache();
      this.putValidator = validator;
      this.writeCache = 
	  Caches.isInvalidationCache(cache) ?
          Caches.ignoreReturnValuesCache(cache, Flag.CACHE_MODE_LOCAL) :
          Caches.ignoreReturnValuesCache(cache);
   }

To:

public TransactionalAccessDelegate(BaseRegion region, PutFromLoadValidator validator) {
      this.region = region;
      this.cache = region.getCache();
      this.putValidator = validator;
      this.writeCache = Caches.ignoreReturnValuesCache(cache);
      this.putFromLoadCache = Caches.ignoreReturnValuesCache(cache);
   }
Fix Versions: 4.1.10
Project: Hibernate ORM
Priority: Major Major
Reporter: Scott Marlow
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira