[infinispan-issues] [JBoss JIRA] (ISPN-6756) EntryView.WriteEntryView.set(value, params...) overwrites unchanged params

Krzysztof Sobolewski (JIRA) issues at jboss.org
Mon Jun 6 05:21:00 EDT 2016


Krzysztof Sobolewski created ISPN-6756:
------------------------------------------

             Summary: EntryView.WriteEntryView.set(value, params...) overwrites unchanged params
                 Key: ISPN-6756
                 URL: https://issues.jboss.org/browse/ISPN-6756
             Project: Infinispan
          Issue Type: Bug
    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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list