[infinispan-issues] [JBoss JIRA] (ISPN-9167) RemoteCacheManagerAdmin#getOrCreateCache(..., null) on a cache container which does not have default cache should fail

Radoslav Husar (JIRA) issues at jboss.org
Wed May 16 09:36:01 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-9167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radoslav Husar updated ISPN-9167:
---------------------------------
    Description: 
The current code defaults to a local cache if the default cache is not defined

{code:java}
  configuration = cacheManager.getDefaultCacheConfiguration();
         if (configuration == null) {
            configuration = new ConfigurationBuilder().build();
         }
{code}

which is very unlikely it would be the intended configuration.  This should rather fail fast.

  was:
The current code defaults to a local cache if the default cache is not defined

{code}
  configuration = cacheManager.getDefaultCacheConfiguration();
         if (configuration == null) {
            configuration = new ConfigurationBuilder().build();
         }
{code}

which is very unlikely it would be the intended configuration.  This should rather fail fast.



> RemoteCacheManagerAdmin#getOrCreateCache(..., null) on a cache container which does not have default cache should fail
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-9167
>                 URL: https://issues.jboss.org/browse/ISPN-9167
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Hot Rod, Server
>            Reporter: Radoslav Husar
>            Priority: Minor
>
> The current code defaults to a local cache if the default cache is not defined
> {code:java}
>   configuration = cacheManager.getDefaultCacheConfiguration();
>          if (configuration == null) {
>             configuration = new ConfigurationBuilder().build();
>          }
> {code}
> which is very unlikely it would be the intended configuration.  This should rather fail fast.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list