Uploaded image for project: 'Hibernate ORM'
  1. HHH-7871

second level cache invalidation messages should be sent by hibernate-infinispan in a cluster

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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);
         }
      

      We are also using Flag.CACHE_MODE_LOCAL with the query cache (event & put cache) and in BaseRegion class.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: