[infinispan-dev] Cluster scaling
Manik Surtani
manik at jboss.org
Tue Oct 23 12:08:49 EDT 2012
On 23 Oct 2012, at 14:53, Thomas Fromm <tf at tfromm.com> wrote:
> On 23.10.2012 15:36, Sanne Grinovero wrote:
>> Hi Thomas, what do you mean by "lost" entries? I'm pretty sure that if
>> an entry can't be find in any node Infinispan will attempt to look it
>> up from a CacheLoader.
>>
>
> Yes, if you know about the key. But size(), keyset() and so on are not
> aware that this particular key is not loaded.
> So you'll never know if you have all entries in cache... so you need to
> dig into the cache loader by yourself :-/
> This is a bit unsatisfying, rhauch wrote also ISPN ticket for this
> problem :-)
>
> This problem appears, when you start seeing ISPN not only as cache in
> classic way, but as storage.
I think the problem is in the keySet() and entrySet() methods. These were originally included as a part of extending ConcurrentMap, but IMO these methods are not practical for a data store.
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Platform Architect, JBoss Data Grid
http://red.ht/data-grid
More information about the infinispan-dev
mailing list