You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Timonin (Jira)" <ji...@apache.org> on 2021/11/30 19:35:00 UTC

[jira] [Assigned] (IGNITE-16031) ScanQuery returns duplicated data

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

Maksim Timonin reassigned IGNITE-16031:
---------------------------------------

    Assignee: Maksim Timonin

> ScanQuery returns duplicated data 
> ----------------------------------
>
>                 Key: IGNITE-16031
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16031
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.11
>            Reporter: Maksim Timonin
>            Assignee: Maksim Timonin
>            Priority: Major
>
> ScanQuery doesn't sync topology version over different nodes, so when query runs on different node it can run over different topologies and can have duplicated primary partition.
>  
> ```
> ignite = startGrids(1);
> cache = ignite.cache(CACHE);
> cache.put(1L, new Person(0, 1));
> cache.put(2L, new Person(1, 0));
> cache.put(3L, new Person(1, 1));
> ScanQuery qry = new ScanQuery();
> startGrid(nodesCnt);
> Thread.sleep(10);
> List<Cache.Entry<Long, Person>> result = cache.query(qry).getAll();
> assertEquals(3, result.size());  // Sometimes fails, and returns duplicated key=1
> ```



--
This message was sent by Atlassian Jira
(v8.20.1#820001)