]
Paul Ferraro updated WFLY-14356:
--------------------------------
Affects Version/s: 22.0.0.Final
Infinispan heap-memory caches transcoding key/values unnecessarily
------------------------------------------------------------------
Key: WFLY-14356
URL:
https://issues.redhat.com/browse/WFLY-14356
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 21.0.2.Final, 22.0.0.Final
Reporter: Ryan Emerson
Assignee: Paul Ferraro
Priority: Major
For local "heap-memory" caches, each key/value stored are being converted to a
byte[] unnecessarily.
The reason that this conversion is taking place, is due to a combination of 1) the
key/value encoding type of Wildfly's "heap-memory" caches not being
explicitly configured. 2) Wildfly using Infinispan in server mode by configuring [1]. This
causes Infinispan `StorageConfigurationManager`[2] to configure the storage media type as
`application/unknown`, which results in the `application/x-java-object` key/values being
converted to byte[] on every put operation.
The simplest solution is to update the "heap-memory" caches to explicitly
configure the encoding as `application/x-java-object`. This will be mandatory in future
versions anyway, as the `application/unknown` type has been deprecated.
[
1] https://github.com/wildfly/wildfly/blob/2bed1cae0c56d697ee0fc80b7f3390...
[
2] https://github.com/infinispan/infinispan/blob/0454c2368ad8365c93042a9e...