Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10176

ClusterCacheStatsImpl not picking up NonTxInvalidationInterceptor for non-tx invalidation cache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.13.Final
    • None
    • None

      We are using a clustered non-tx <invalidation-cache> for which we enable JMX stats. The invalidation counter reported by ClusterCacheStatsImpl remains always zero.

      Further investigation showed that a NonTxInvalidationInterceptor is created for the cache, but not picked up by ClusterCacheStatsImpl since it's trying to retrieve the interceptor like this:

         //invalidations
               InvalidationInterceptor invalidationInterceptor = getFirstInterceptorWhichExtends(remoteCache,
                     InvalidationInterceptor.class);
               if (invalidationInterceptor != null) {
                  map.put(INVALIDATIONS, invalidationInterceptor.getInvalidations());
               } else {
                  map.put(INVALIDATIONS, 0);
               }
      

      But NonTxInvalidationInterceptor does not extend InvalidationInterceptor. Further more the javadoc states:

      /**
      ** This interceptor should completely replace default InvalidationInterceptor.*
      ...
      ..
      .
      

            [ISPN-10176] ClusterCacheStatsImpl not picking up NonTxInvalidationInterceptor for non-tx invalidation cache

            Infinispan issue tracking has been migrated to GitHub issues: https://github.com/infinispan/infinispan/issues
            If you still want this issue to be worked on, create a new issue on GitHub and link this issue.

            Tristan Tarrant added a comment - Infinispan issue tracking has been migrated to GitHub issues: https://github.com/infinispan/infinispan/issues If you still want this issue to be worked on, create a new issue on GitHub and link this issue.

              Unassigned Unassigned
              ks@error.be Koen Serneels (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: