[infinispan-issues] [JBoss JIRA] (ISPN-11918) org.infinispan.jcache.embedded.JCacheManager#create always throw CacheConfigurationException if create cache with template

Sammy Chu (Jira) issues at jboss.org
Tue Jun 2 00:15:00 EDT 2020


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

Sammy Chu updated ISPN-11918:
-----------------------------
    Steps to Reproduce: [^ISPN-11918.zip] is a simple standalone application to reproduce this issue, change infinispan version from 10.1.8.Final to 8.2.12.Final will work correctly. Attached the trace log [^ISPN-11918-fail.log] when stay on 10.1.8.Final and [^ISPN-11918-success.log] when changed to 8.2.12.Final.


> org.infinispan.jcache.embedded.JCacheManager#create always throw CacheConfigurationException if create cache with template
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-11918
>                 URL: https://issues.redhat.com/browse/ISPN-11918
>             Project: Infinispan
>          Issue Type: Bug
>          Components: JCache
>    Affects Versions: 10.1.8.Final
>            Reporter: Sammy Chu
>            Priority: Major
>
> Our project upgraded from Infinispan 8.2.4.Final to 9.4.18.Final and got `org.infinispan.commons.CacheConfigurationException: ISPN000453: Attempt to define configuration for cache MY_CACHE_NAME which already exists` .
> We are defining the cache template and then programmatically define the JCache with jcache configuration. From the source code of 
> [JCacheManager|https://github.com/infinispan/infinispan/blob/master/jcache/embedded/src/main/java/org/infinispan/jcache/embedded/JCacheManager.java#L170], it is reading the `baseConfig` as the template and then merge it with the jcache configuration, which is working expected in 8.2.4.Final. Now upgraded to 9.4.18.Final, it is not working due to change of ISPN-7540.
> We checked this issue also reproducible on current latest stable release (10.1.8.Final).
> [^ISPN-11918.zip] is a simple standalone application to reproduce this issue, change infinispan version from 10.1.8.Final to 8.2.12.Final will work correctly. Attached the trace log [^ISPN-11918-fail.log] when stay on 10.1.8.Final and [^ISPN-11918-success.log] when changed to 8.2.12.Final.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list