Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16031

ScanQuery returns duplicated data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11
    • None
    • None
    • None
    • Docs Required, Release Notes Required

    Description

      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

      ```

      Attachments

        Issue Links

          Activity

            People

              timonin.maksim Maksim Timonin
              timonin.maksim Maksim Timonin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: