You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2017/07/25 20:10:00 UTC

[jira] [Created] (IGNITE-5836) AffinityFunctionContext should provide consistent previous assignment

Valentin Kulichenko created IGNITE-5836:
-------------------------------------------

             Summary: AffinityFunctionContext should provide consistent previous assignment
                 Key: IGNITE-5836
                 URL: https://issues.apache.org/jira/browse/IGNITE-5836
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.0
            Reporter: Valentin Kulichenko
            Priority: Critical
             Fix For: 2.2


Currently each cache maintains its own {{AffinityFunctionContext}}. This leads to the case that {{previousAssignment}} can be different for two caches created on different topology versions. In particular, this broke {{FairAffinityFunction}} which was removed because of that.

We should do the following:
* Make sure that {{previousAssignment}} is consistent for all caches with same affinity function, regardless of topology versions caches were created on.
* Add mechanism to enforce equality check for affinity functions. We probably will need to force user to implement {{equals}} for cache node filter and backup filter.
* When above is done, bring back {{FairAffinityFunction}}.

This is also discussed on dev list: http://apache-ignite-developers.2346864.n4.nabble.com/Resurrect-FairAffinityFunction-td19987.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)