[infinispan-dev] NPE with Cache.replace()

Mircea Markus mmarkus at redhat.com
Wed May 22 07:17:52 EDT 2013


On 21 May 2013, at 11:14, Bela Ban <bban at redhat.com> wrote:

> [Mircea]
> 
> Might be a problem in xsite replication when the keys that are updated 
> are not present. This happens all the time as xsite state transfer is 
> not yet implemented: a new site comes online, no state transfer, and an 
> xsite replication update will not be able to replace non-existing keys.

Just added a test on 5.3 and this passes. I'll give it a go on ISPN 5.2.6.Final as well. 
> 
> I suggest to use a straight put() for updates, or a new internal 
> replaceIfPresentOrPutIfNotPresent()...
that's logically equivalent with put :-)

> 
> On 5/21/13 11:43 AM, Bela Ban wrote:
>> 
>> Can someone investigate why CacheImpl.replaceInternal() throws an NPE ?
>> I can reproduce this every time. Using the latest JDG.
> 
> 
> -- 
> Bela Ban, JGroups lead (http://www.jgroups.org)
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

Cheers,
-- 
Mircea Markus
Infinispan lead (www.infinispan.org)







More information about the infinispan-dev mailing list