[infinispan-issues] [JBoss JIRA] (ISPN-11384) Cannot create OFF_HEAP caches dynamically

Gustavo Fernandes (Jira) issues at jboss.org
Wed Feb 26 12:48:00 EST 2020


    [ https://issues.redhat.com/browse/ISPN-11384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983264#comment-13983264 ] 

Gustavo Fernandes commented on ISPN-11384:
------------------------------------------

The issue is not the parser, it does its job correctly, but the serializer that persists the Configuration into XML skips the <memory> section if the attributes are not modified: https://github.com/infinispan/infinispan/blob/fbcd38a39e950d2ca709297c63e29fd0e79b0794/core/src/main/java/org/infinispan/configuration/serializing/Serializer.java#L621

> Cannot create OFF_HEAP caches dynamically
> -----------------------------------------
>
>                 Key: ISPN-11384
>                 URL: https://issues.redhat.com/browse/ISPN-11384
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Hot Rod, REST
>    Affects Versions: 11.0.0.Alpha1, 10.1.3.Final
>            Reporter: Gustavo Fernandes
>            Priority: Major
>
> {code:xml}
> <infinispan>
>     <cache-container>
>         <local-cache name ="offheap-cache">
>             <memory>
>                 <off-heap/>
>             </memory>
>         </local-cache>
>     </cache-container>
> </infinispan>
> {code}
> The config above when posted via REST will ignore the <off-heap/> and create a regular cache



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


More information about the infinispan-issues mailing list