infinispan / infinispan-operator

Infinispan Operator
https://infinispan.org/docs/infinispan-operator/main/operator.html
Apache License 2.0
49 stars 54 forks source link

The CacheService default cache configuration causes multiple warnings #997

Open ryanemerson opened 3 years ago

ryanemerson commented 3 years ago
14:12:00,831 WARN  (blocking-thread--p3-t1) [org.infinispan.CONFIG] ISPN000586: The memory configuration element 'off-heap' has been deprecated. Please update your configuration
14:12:00,881 WARN  (blocking-thread--p3-t2) [org.infinispan.encoding.impl.StorageConfigurationManager] ISPN000599: Configuration for cache 'default' does not define the encoding for keys or values. If you use operations that require data conversion or queries, you should configure the cache with a specific MediaType for keys or values.

We should update the default cache configuration so that it explicitly sets a key/value encoding.

Furthermore, we should update the off-heap config to no longer use the off-heap child element. The config can be simplified to:

<memory storage="OFF_HEAP" eviction="MEMORY" strategy="REMOVE"/>
Crumby commented 3 years ago

@ryanemerson Should the server side cache templates be updated too? None of them is using encoding and all the caches created from templates give you ISPN000599: Configuration for cache XXX does not define the encoding for keys or values... I understand it's server issue but it's related to this one

ryanemerson commented 3 years ago

@Crumby Good point! I think the templates might be being removed in the near future though ... @karesti @tristantarrant What's the status of the default templates?