Infinispan subsystem changes between EAP 7.3 and EAP 7.4

Solution Verified - Updated -

Issue

Post the migration from EAP 7.3.9 to 7.4.2 there is change in infinispan 9.4 to 11 where object-memory changed to heap-memory.

EAP 7.3 configuration:

<subsystem xmlns="urn:jboss:domain:infinispan:9.0">
            <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
...
<cache-container name="hibernate" module="org.infinispan.hibernate-cache">
<transport lock-timeout="60000"/>
<local-cache name="local-query">
<object-memory size="10000"/> <!--- object memory size -->
<expiration max-idle="100000"/>
</local-cache>
<invalidation-cache name="entity">
<object-memory size="10000"/> <!--- object memory size -->
<expiration max-idle="100000"/>
</invalidation-cache>
<replicated-cache name="timestamps"/>
</cache-container>

EAP 7.4 configuration:

<subsystem xmlns="urn:jboss:domain:infinispan:12.0">
   <cache-container name="ejb" default-cache="dist" aliases="sfsb" modules="org.wildfly.clustering.ejb.infinispan">
...
<cache-container name="hibernate" modules="org.infinispan.hibernate-cache">
<transport lock-timeout="60000"/>
<local-cache name="local-query">
<heap-memory size="10000"/> <!--- heap-memory size -->
<expiration max-idle="100000"/>
</local-cache>
...
<invalidation-cache name="entity">
<heap-memory size="10000"/> <!--- heap-memory size -->
<expiration max-idle="100000"/>
</invalidation-cache>
<replicated-cache name="timestamps"/>
</cache-container>

[issue in EAP 7.4 - object-memory]

OPVDX001: Validation error in standalone-full-ha.xml ---------------------------
|
|  395: <transport lock-timeout="60000"/>
|  396: <local-cache name="local-query">
|  397:     <object-memory size="10000"/>
|           ^^^^ 'object-memory' isn't an allowed element here
|                
|                Elements allowed here are: 
|                  binary-keyed-jdbc-store  locking                  
|                  expiration               mixed-keyed-jdbc-store   
|                  file-store               off-heap-memory          
|                  heap-memory              remote-store             
|                  hotrod-store             store                    
|                  jdbc-store               transaction              
|
|  398:     <expiration max-idle="100000"/>
|  399: </local-cache>
|  400: <local-cache name="pending-puts">
|
| The primary underlying error message was:
| > ParseError at [row,col]:[397,21]
| > Message: WFLYCTL0198: Unexpected element
| >   '{urn:jboss:domain:infinispan:12.0}object-memory' encountered

Queries:
- what is the difference?
- should I configure the values differently?
- what does heap-memory mean? Is the memory in MB?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • infinispan subsystem

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content