Re: Questions about getAllInternal(...)

2018-09-09 Thread steve.hostett...@gmail.com
Hello Alexey, Thanks for the answer. It does help but I can't help thinking that the sort of one size fits all approach would have important performance consequences on simple use cases (read only local or replicated caches). Wouldn't be useful to have the option for a on heap non serialized

Re: Questions about getAllInternal(...)

2018-09-04 Thread Alexey Goncharuk
Hello Steve, A cache entry becomes obsolete once the on-heap object is no longer locked and is not used by any thread. Since we moved to off-heap-first model in Ignite 2.0, we must clean on-heap entries as soon as possible to keep the heap small. Thus both of the places you pointed out. Hope

Questions about getAllInternal(...)

2018-09-04 Thread steve.hostett...@gmail.com
Hello, in the case of local caches without eviction policy. I have the following questions: 1) I would to understand why, in the method, getAllInternal the method entryEx(cacheKey); uses the topology in the case of a local cache. Furthermore, it calls the method map.putEntryIfObsoleteOrAbsent.