Anton Vinogradov created IGNITE-16931:
-----------------------------------------

             Summary: Read Repair should support unstable topology
                 Key: IGNITE-16931
                 URL: https://issues.apache.org/jira/browse/IGNITE-16931
             Project: Ignite
          Issue Type: Improvement
            Reporter: Anton Vinogradov
            Assignee: Anton Vinogradov


Currently RR does not support unstable topology (when not all owners are 
located by affinity) and this can be fixed.

As a start point, it's a good idea to consider a replacement
{noformat}
for (KeyCacheObject key : keys) {
                List<ClusterNode> nodes = ctx.affinity().nodesByKey(key, 
topVer); // affinity

                primaryNodes.put(key, nodes.get(0));
...
{noformat}
to
{noformat}
for (KeyCacheObject key : keys) {
                List<ClusterNode> nodes = ctx.topology().nodes(key.partition(), 
topVer); // topology

                primaryNodes.put(key, nodes.get(0));
...
{noformat}
at 
{{{}org.apache.ignite.internal.processors.cache.distributed.near.consistency.GridNearReadRepairAbstractFuture#map{}}}.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to