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

getCache(name) should never use the default cache's configuration

XMLWordPrintable

      DefaultCacheManager.getCache(name) will try to create the cache if it doesn't exist, and if a matching configuration doesn't exist either it uses the default cache's configuration.

      Since 9.0 named cache configurations no longer inherit from the default cache configuration, so using the default cache's configuration as a default configuration is surprising.

      DefaultCacheManager.getCache(name) should only create the cache if a matching configuration exists, otherwise it should throw an exception.

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: