ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Lipkovich (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5357) Replicated cache reads load balancing.
Date Thu, 21 Sep 2017 12:51:00 GMT

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

Mikhail Lipkovich commented on IGNITE-5357:

Hi Alexei,
I'm working on this task but I faced with one question which I can't resolve. There is a {{canRemap}}
flag which has an unclear meaning for me. Here is the relevant piece of code that I'm going
to change according to the task in {{GridPartitionedSingleGetFuture#affinityNode}}:
        if (!canRemap) {
            for (ClusterNode node : affNodes) {
                if (cctx.discovery().alive(node))
                    return node;

            return null;
            return affNodes.get(0);
It's commented that {{canRemap}} is a flag indicating that get should be done on a locked
topology version but it's not clear for my how is it related to piece of code above. Should
I somehow take care about this flag during implementation of requested functionality or I
can just ignore it?


> Replicated cache reads load balancing.
> --------------------------------------
>                 Key: IGNITE-5357
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5357
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.6
>            Reporter: Alexei Scherbakov
>            Assignee: Mikhail Lipkovich
>              Labels: newbie
>             Fix For: 2.3
> Currently all read requests from client node to replicated cache will go through primary
node for key.
> Need to select random affinity node in topology and send request here (only if readFromBackups=true)
> If where are server nodes collocated on same host with client, must select target node
from them.

This message was sent by Atlassian JIRA

View raw message