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

Non-collocated IgniteSet stores duplicate values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • data structures
    • None
    • a ignite cluster with 2 nodes

    Description

      Non-collocated IgniteSet shows multiple instances of the same objects when populated from different nodes.

      This code, when run twice on different nodes, results in more than 10 elements in set:

      CollectionConfiguration setCfg = new CollectionConfiguration();
      
      setCfg.setCacheMode(PARTITIONED);
      
      IgniteSet<Integer> set = ignite.set("set", setCfg);
      
      System.out.println("Set size before init: " + set.size());
      
      for (int j = 0; j < 10; j++) {
          set.add(j);
      
          System.out.println(new ArrayList<>(set));
      }
      
      System.out.println("Set size after init: " + set.size());
      

      Collocated set seems to work as expected. Populating from one node also doesn't create duplicates.

      Attachments

        1. Reproducer.java
          2 kB
          Pavel Pereslegin

        Issue Links

          Activity

            People

              zstan Evgeny Stanilovsky
              CrazyRen DL Ren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: