ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Shutak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2733) Ignite should use actual AffinityTopologyVersion for LOCAL cache
Date Mon, 29 Feb 2016 12:09:18 GMT
Artem Shutak created IGNITE-2733:

             Summary: Ignite should use actual AffinityTopologyVersion for LOCAL cache
                 Key: IGNITE-2733
                 URL: https://issues.apache.org/jira/browse/IGNITE-2733
             Project: Ignite
          Issue Type: Task
            Reporter: Artem Shutak

The issue created to properly fix IGNITE-2554. Also, current behavior can has another issues
with dynamically started LOCAL cache.

Ignite does not store an affinity assignment history for local cache and always operate with
{{AffinityTopologyVersion(1)}}. When cache starts dynamically, an information about dynamically
started cache is available only for {{AffinityTopologyVersion(1, 1)}}, but Ignite does not
store it. Proper fix should be:
#* There is no need to store all history for local cache (as Ignite do it now). So, we need
just update the head topology version (see GridAffinityAssignmentCache.head field)
#* We must return right topology version at all project. See, for example, {{GridCacheAffinityManager}}
and the following code
        if (cctx.isLocal())
            topVer = new AffinityTopologyVersion(1);

This message was sent by Atlassian JIRA

View raw message