You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexei Scherbakov (JIRA)" <ji...@apache.org> on 2019/06/20 09:46:00 UTC

[jira] [Comment Edited] (IGNITE-11799) Do not always clear partition in MOVING state before exchange

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

Alexei Scherbakov edited comment on IGNITE-11799 at 6/20/19 9:45 AM:
---------------------------------------------------------------------

Actually clearing required in all cases if new rebalance is FULL.
Consider the scenario:

2 nodes, N1 - supplier, N2 - demander.
N1 has keys k1,k2,k3
N2 joins and start any type of rebalancing
N1 removes k1
N2 dies after receiving k1,k2 in supply but before receiving removal of k1
N2 joins, starts full rebalance and loads k2,k3
N2 will contain keys 1,2,3 while N1 will contain keys 1,2 causing partition desync.




was (Author: ascherbakov):
Actually clearing required in all cases if new rebalance is FULL.
Consider the scenario:

2 nodes, N1 - supplier, N2 - demander.
N1 has keys k1,k2,k3
N2 joins and start any type of rebalancing
N1 removes k1
N2 dies after receiving k1,k2 but before receiving removal of k1
N2 joins, starts full rebalance and loads k2,k3
N2 will contain keys 1,2,3 while N1 will contain keys 1,2 causing partition desync.



> Do not always clear partition in MOVING state before exchange
> -------------------------------------------------------------
>
>                 Key: IGNITE-11799
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11799
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Alexei Scherbakov
>            Assignee: Alexei Scherbakov
>            Priority: Major
>
> After IGNITE-10078 if partition was in moving state before exchange and choosed for full rebalance (for example, this will happen if any minor PME cancels previous rebalance) we always will clear it to avoid desync issues if some removals were not delivered to demander.
> This is not necessary to do if previous rebalance was full.
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)