[JBoss JIRA] (ISPN-6756) EntryView.WriteEntryView.set(value, params...) overwrites unchanged params
by Krzysztof Sobolewski (JIRA)
[ https://issues.jboss.org/browse/ISPN-6756?page=com.atlassian.jira.plugin.... ]
Krzysztof Sobolewski updated ISPN-6756:
---------------------------------------
Description:
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.MetaLifespan 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 MetaLifespan makes the MetaCreated disappear, and this is a problem.
was:
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.
> 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.MetaLifespan 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 MetaLifespan makes the MetaCreated disappear, and this is a problem.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months
[JBoss JIRA] (ISPN-6757) Need to add externalizers for more MetaParams
by Krzysztof Sobolewski (JIRA)
Krzysztof Sobolewski created ISPN-6757:
------------------------------------------
Summary: Need to add externalizers for more MetaParams
Key: ISPN-6757
URL: https://issues.jboss.org/browse/ISPN-6757
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Alpha2
Reporter: Krzysztof Sobolewski
Currently only the MetaParams.MetaLifespan (and MetaEntryVersion) has an Externalizer. And, you guessed it, there is a TODO: Add other MetaParam externalizers :) (For our application we need only MetaCreated, but the complete fix would add all.)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months
[JBoss JIRA] (ISPN-6756) EntryView.WriteEntryView.set(value, params...) overwrites unchanged params
by Krzysztof Sobolewski (JIRA)
[ https://issues.jboss.org/browse/ISPN-6756?page=com.atlassian.jira.plugin.... ]
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months
[JBoss JIRA] (ISPN-6756) EntryView.WriteEntryView.set(value, params...) overwrites unchanged params
by Krzysztof Sobolewski (JIRA)
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)
8 years, 6 months
[JBoss JIRA] (ISPN-6744) ClusterEvent doesn't implement CacheEntryExpired
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6744?page=com.atlassian.jira.plugin.... ]
Adrian Nistor edited comment on ISPN-6744 at 6/5/16 11:00 AM:
--------------------------------------------------------------
I believe this bug should be backported to 8.2.x branch too.
was (Author: anistor):
I believe this bug shoud be backported to 8.2.x branch too.
> ClusterEvent doesn't implement CacheEntryExpired
> ------------------------------------------------
>
> Key: ISPN-6744
> URL: https://issues.jboss.org/browse/ISPN-6744
> Project: Infinispan
> Issue Type: Bug
> Components: Expiration, Listeners
> Reporter: William Burns
> Assignee: William Burns
> Fix For: 9.0.0.Alpha3, 9.0.0.Final
>
>
> ClusterEvent needs to implement CacheEntryExpired or else it cannot be replicated as a cluster event in the event of an expiration not on a node where a cluster listener was registered.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months