]
Krzysztof Sobolewski updated ISPN-6756:
---------------------------------------
Component/s: Core
EntryView.WriteEntryView.set(value, params...) overwrites unchanged
params
--------------------------------------------------------------------------
Key: ISPN-6756
URL:
https://issues.jboss.org/browse/ISPN-6756
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Alpha2
Reporter: Krzysztof Sobolewski
The actual bug is in EntryViews.updateMetaParams(), which even has a big TODO about it:
{code:java}
// TODO: Deal with entry instances that are MetaParamsCacheEntry and merge meta
params
// e.g. check if meta params exist and if so, merge, but also check for old
metadata
// information and merge it individually
{code}
Since we're using expiration in our application, the MetaParam.MetaLifetime is quite
important to us. And it works best if we also specify the MetaParams.MetaCreated. We can
specify both when loading the entry from the CacheLoader, but we can't pass both to
the set() method (because MetaCreated is not Writable). And passing just the MetaLifetime
makes the MetaCreated disappear, and this is a problem.