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] [Created] (IGNITE-16031) ScanQuery returns duplicated data

Maksim Timonin created IGNITE-16031:
---------------------------------------

             Summary: 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


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)