ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-2110) Replace workarond for local node flag in TcpDiscoveryNode with better solution
Date Tue, 07 Feb 2017 15:46:41 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Kuznetsov updated IGNITE-2110:
-------------------------------------
    Description: 
We should get rid of this workaround in
GridDhtAffinityAssignmentResponse#finishUnmarshal
{code:java}
            // TODO IGNITE-10: setting 'local' for nodes not needed when IGNITE-10 is implemented.
            int assignments = affAssignment.size();

            for (int n = 0; n < assignments; n++) {
                List<ClusterNode> nodes = affAssignment.get(n);

                int size = nodes.size();

                for (int i = 0; i < size; i++) {
                    ClusterNode node = nodes.get(i);

                    if (node instanceof TcpDiscoveryNode)
                        ((TcpDiscoveryNode)node).local(node.id().equals(ctx.localNodeId()));
                }
            }
{code}
by designing new solution for TcpDiscoveryNode.local transient flag

  was:
We should get read of this workaround in
GridDhtAffinityAssignmentResponse#finishUnmarshal
{code:java}
            // TODO IGNITE-10: setting 'local' for nodes not needed when IGNITE-10 is implemented.
            int assignments = affAssignment.size();

            for (int n = 0; n < assignments; n++) {
                List<ClusterNode> nodes = affAssignment.get(n);

                int size = nodes.size();

                for (int i = 0; i < size; i++) {
                    ClusterNode node = nodes.get(i);

                    if (node instanceof TcpDiscoveryNode)
                        ((TcpDiscoveryNode)node).local(node.id().equals(ctx.localNodeId()));
                }
            }
{code}
by designing new solution for TcpDiscoveryNode.local transient flag


> Replace workarond for local node flag in TcpDiscoveryNode with better solution
> ------------------------------------------------------------------------------
>
>                 Key: IGNITE-2110
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2110
>             Project: Ignite
>          Issue Type: Task
>          Components: cache
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ershov
>            Priority: Minor
>             Fix For: 2.0
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> We should get rid of this workaround in
> GridDhtAffinityAssignmentResponse#finishUnmarshal
> {code:java}
>             // TODO IGNITE-10: setting 'local' for nodes not needed when IGNITE-10 is
implemented.
>             int assignments = affAssignment.size();
>             for (int n = 0; n < assignments; n++) {
>                 List<ClusterNode> nodes = affAssignment.get(n);
>                 int size = nodes.size();
>                 for (int i = 0; i < size; i++) {
>                     ClusterNode node = nodes.get(i);
>                     if (node instanceof TcpDiscoveryNode)
>                         ((TcpDiscoveryNode)node).local(node.id().equals(ctx.localNodeId()));
>                 }
>             }
> {code}
> by designing new solution for TcpDiscoveryNode.local transient flag



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message