ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanislav Lukyanov (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IGNITE-9775) IgniteCache.lostPartitions() is empty with single node remaining in the cluster
Date Thu, 22 Nov 2018 15:58:00 GMT

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

Stanislav Lukyanov resolved IGNITE-9775.
----------------------------------------
    Resolution: Duplicate

> IgniteCache.lostPartitions() is empty with single node remaining in the cluster
> -------------------------------------------------------------------------------
>
>                 Key: IGNITE-9775
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9775
>             Project: Ignite
>          Issue Type: Bug
>          Components: persistence
>    Affects Versions: 2.5, 2.6
>            Reporter: Roman Novichenok
>            Priority: Major
>
> When only one node remains in the cluster, cache.lostPartitions() is empty.
> Pull request: [https://github.com/novicr/ignite/pull/1] contains a test to show the
issue.
> To reproduce:
>  # Turn on native persistence
>  # Create partitioned cache with 1 backup, sync replication, READ_ONLY_SAFE loss policy
>  # Start 4 nodes
>  # Persist enough data to make sure all nodes participate
>  # Stop 3 nodes
> Expected behavior:
>  * cache.lostPartitions().size() > 0
> Actual:
>  * cache.lostPartitions().size() == 0
>  
> Note, if more than one node is operational, the lostPartitions() will contain some number
of partitions.  Don't know if the list it contains is complete.
>  
> The issue seems to be in the GridDhtPartitionTopologyImpl.detectLostPartitions()
> With a single node left in the cluster, the coordinator node is also the only one that
contains any data, but localNode is skipped when examining node2Part maps to look for any
partitions that should be marked LOST.
>  



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

Mime
View raw message