You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Semen Boikov (JIRA)" <ji...@apache.org> on 2017/02/01 08:24:51 UTC

[jira] [Assigned] (IGNITE-4557) Wrong method is called on rebalancing.

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

Semen Boikov reassigned IGNITE-4557:
------------------------------------

    Assignee: Stanilovsky Evgeny  (was: Semen Boikov)

Evgeny,

The same error again CacheContinuousQueryManager:371, I'm not going to fix all your errors. Please really do what I was asking for: review yourself your changes before submitting for review.

Thanks

> Wrong method is called on rebalancing.
> --------------------------------------
>
>                 Key: IGNITE-4557
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4557
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.6
>            Reporter: Alexei Scherbakov
>            Assignee: Stanilovsky Evgeny
>            Priority: Critical
>             Fix For: 2.0
>
>
> During rebalancing the following code might be called from {{GridDhtPartitionDemander:695}}:
> {noformat}
> for (Integer miss : supply.missed()) {
>       if (cctx.affinity().localNode(miss, topVer))
>             fut.partitionMissed(id, miss);
> }
> {noformat}
> The problem is in wrong polymorphic call to
> {noformat}
> public boolean localNode(Object key, AffinityTopologyVersion topVer)
> {noformat}
> Instead the following must be called:
> {noformat}
> public boolean localNode(int part, AffinityTopologyVersion topVer)
> {noformat}
> Also a codebase must be verified for existing similar problems and its better to rename both methods to keyLocalNode and partitionLocalNode to avoid confusion.



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