Change By: Scott Marlow (17/Dec/12 9:44 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:
{code}
   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);
   }
{code}
To:
{code}
   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);
   }
{code}

We are also using Flag.CACHE_MODE_LOCAL with the query cache (event & put cache) and in BaseRegion class.
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