ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Vinogradov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-7823) Separate cache for non collocated IgniteSet.
Date Mon, 09 Jul 2018 13:56:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-7823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536942#comment-16536942

Anton Vinogradov commented on IGNITE-7823:

I dont like an idea to add some node attribute.
Compatibility based on version is a simple and pretty tested idea.

In case you are sure you have good replacement, lets add it to 3.0 tasks to have brand new
cool compatibility since 3.0.
For now, version is a good choice.

Code looks good to me.

> Separate cache for non collocated IgniteSet.
> --------------------------------------------
>                 Key: IGNITE-7823
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7823
>             Project: Ignite
>          Issue Type: New Feature
>          Components: data structures
>            Reporter: Andrey Kuznetsov
>            Assignee: Pavel Pereslegin
>            Priority: Major
>             Fix For: 2.7
> Currently, single data structures cache is shared between several collection instances
(IgniteQueue, IgniteSet).
> To support iterator() and size() IgniteSet maintains plain on-heap Java sets on every
node (see CacheDataStructuresManager.setDataMap). These sets duplicate backing-cache entries,
both primary and backup. For big non-collocated sets it's too expensive to maintain redundant
onheap data copies. The simplest way to avoid copies is to use separate cache for non-collocated
IgniteSet version; hence size of set is the same as size of backing cache, and also set iterator
is virtually the same as backing cache iterator. 
> The difference between exising set implementation and set based on separate cache should
be properly documented afterwards.

This message was sent by Atlassian JIRA

View raw message