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

ASF GitHub Bot commented on IGNITE-9975:
----------------------------------------

GitHub user akalash opened a pull request:

    https://github.com/apache/ignite/pull/5214

    IGNITE-9975 Set partition counters to 0 when reset lost partitions

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-9975

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/5214.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5214
    
----
commit 5a009467ceb96763c58f297838f4cfb44c974bf8
Author: Anton Kalashnikov <kaa.dev@...>
Date:   2018-10-30T14:41:59Z

    IGNITE-9975 Set partition counters to 0 when reset lost partitions

----


> Possible data loss during starting of the nodes with empty pds
> --------------------------------------------------------------
>
>                 Key: IGNITE-9975
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9975
>             Project: Ignite
>          Issue Type: Bug
>          Components: persistence
>    Affects Versions: 2.4
>            Reporter: Andrey Aleksandrov
>            Assignee: Anton Kalashnikov
>            Priority: Major
>             Fix For: 2.8
>
>         Attachments: reproducer.java
>
>
> Case: 
> 1)Start 3 data nodes and activate the cluster with cache with 1 backup and 
> PartitionLossPolicy.READ_ONLY_SAFE.
> 2)Start client and add the data to your cache. Stop the client
> 3)Stop DN2 and clear it pds and val
> 4)Start DN2. Rebalance will start.
> 5)During rebalance stop DN3.
> 6)Start DN3.
> At this moment some partitions from DN2 marked as LOST and cache size will be 
> less than expected.
> 7) Run resetLostPartitions(caches).
> Now all partitions on DN2 marked as OWNING but cache size is still less than 
> expected.
> Workaround:
> after step 6 do:
> 7)force rebalance using deactivate/activate methods.
> 8)wait for completion of rebalance
> Now cache size is expected but some partitions from DN2 marked as LOST
> 9)Run resetLostPartitions(caches).
> Now cache size is OK and all partitions from DN2 marked as OWNING.
> However, looks like without force rebalance we have data loss here.
>  



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

Reply via email to