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

ClusterCacheStatsImpl throws exception when cache definition does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 13.0.0.Dev01, 12.1.3.Final
    • 12.1.2.Final
    • Core
    • None

    Description

      The ClusterExecutor is used to execute the DistributedCacheStatsCallable on all nodes in the cluster to retrieve cluster wide stats. However, if one or more of the cluster members are missing a cache definition, then the following exception is thrown ISPN000436: Cache 'someCache' has been requested, but no matching cache configuration exists.

      Infinispan's operator Backup/Restore functionality uses zero-capacity pods to join a cluster and perform said operation. On joining the cluster, these nodes do not have any cache definitions defined, resulting in the DistributedCacheStatsCallable failing and cluster-wide cache stats failing until these pods leave the cluster.

      A simple solution is to simple update DistributedCacheStatsCallable to return an empty map when executed on a node that is missing a cache configuration.

      Attachments

        1. source-0.txt
          40 kB
        2. source-1.txt
          11 kB
        3. zero-capacity.txt
          55 kB

        Activity

          People

            remerson@redhat.com Ryan Emerson
            remerson@redhat.com Ryan Emerson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: